-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathRotowirePlayerRequest.php
42 lines (36 loc) · 1.05 KB
/
RotowirePlayerRequest.php
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
<?php
namespace JasonRoman\NbaApi\Request\StatsProd\StatsCms\Rotowire;
use JasonRoman\NbaApi\Params\PlayerIdParam;
use JasonRoman\NbaApi\Params\StatsProd\LimitParam;
use JasonRoman\NbaApi\Params\StatsProd\OffsetParam;
use JasonRoman\NbaApi\Request\StatsProd\StatsCms\AbstractStatsProdStatsCmsRequest;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get the rotowire for a specific player. Same endpoint but separated out to enforce requesting a specific player.
*/
class RotowirePlayerRequest extends AbstractStatsProdStatsCmsRequest
{
const ENDPOINT = '/wp-json/statscms/v1/rotowire/player';
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = PlayerIdParam::MIN, max = PlayerIdParam::MAX)
*
* @var int
*/
public $playerId;
/**
* @Assert\Type("int")
* @Assert\Range(min = LimitParam::MIN)
*
* @var string
*/
public $limit;
/**
* @Assert\Type("int")
* @Assert\Range(min = OffsetParam::MIN)
*
* @var string
*/
public $offset;
}