-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathVideoEventsRequest.php
More file actions
45 lines (39 loc) · 1.1 KB
/
VideoEventsRequest.php
File metadata and controls
45 lines (39 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?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,
]);
}
}