<?php

namespace App\Integrations\Shutterstock\Requests;

use App\Integrations\Common\Configurable;

final class PostImagesLicenseRequest extends Configurable implements RequestInterface
{
    protected $options = [
        'method' => 'POST',
        'url' => 'https://api.shutterstock.com/v2/images/licenses',
    ];

    public function __construct()
    {
        parent::__construct();
    }

    /**
     * @return string
     */
    public function getMethod(): string
    {
        return $this->getOption('method');
    }

    public function getUri()
    {
        return $this->getOption('url');
    }

    public function getBody()
    {
        return ['images' => $this->getOption('images')];
    }

    public function setImages(array $images)
    {
        $this->setOption('images', $images);

        return $this;
    }
}
