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\API\SubstituteRequestInterface;
use WBW\Library\Pexels\Model\AbstractRequest;
use WBW\Library\Pexels\Traits\IdTrait;
/**
* Get video request.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\Pexels\Model\Request
class GetVideoRequest extends AbstractRequest implements SubstituteRequestInterface {
use IdTrait;
* Get video resource path.
* @var string
const GET_VIDEO_RESOURCE_PATH = "/v1/videos/videos/:id";
* {@inheritDoc}
public function getResourcePath() {
return self::GET_VIDEO_RESOURCE_PATH;
}
* {@inheritdoc}
public function getSubstituteName() {
return ":id";
public function getSubstituteValue() {
return $this->getId();