Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (39 sloc) 1.1 KB
<?php
namespace JasonRoman\NbaApi\Request\Stats\Stats\Video;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\GameEventIdParam;
use JasonRoman\NbaApi\Params\GameIdParam;
use JasonRoman\NbaApi\Request\Stats\Stats\AbstractStatsStatsRequest;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get details about a game event; namely the UUID that can be used in Nba\Wsc\Video\VideoRequest to get more details.
*/
class VideoEventsRequest extends AbstractStatsStatsRequest
{
const ENDPOINT = '/stats/videoevents';
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(GameIdParam::FORMAT)
*
* @var string
*/
public $gameId;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = GameEventIdParam::MIN, max = GameEventIdParam::MAX)
*
* @var int
*/
public $gameEventId;
/**
* {@inheritdoc}
*/
public static function getExampleValues(): array
{
return array_merge(parent::getExampleValues(), [
'gameEventId' => 1,
]);
}
}
You can’t perform that action at this time.