for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the pexels-library package.
*
* (c) 2019 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\Pexels\Model\Request;
use WBW\Library\Pexels\Model\AbstractRequest;
use WBW\Library\Pexels\Traits\PageTrait;
use WBW\Library\Pexels\Traits\PerPageTrait;
use WBW\Library\Pexels\Traits\QueryTrait;
/**
* Search photos request.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\Pexels\Model\Request
class SearchPhotosRequest extends AbstractRequest {
use PageTrait;
use PerPageTrait;
use QueryTrait;
* Search photos resource path.
* @var string
const SEARCH_PHOTOS_RESOURCE_PATH = "/v1/search";
* Constructor.
public function __construct() {
parent::__construct();
$this->setPage(1);
$this->setPerPage(15);
}
* {@inheritDoc}
public function getResourcePath() {
return self::SEARCH_PHOTOS_RESOURCE_PATH;