-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathTeamAssignmentsRequest.php
More file actions
51 lines (44 loc) · 1.26 KB
/
Copy pathTeamAssignmentsRequest.php
File metadata and controls
51 lines (44 loc) · 1.26 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
46
47
48
49
50
51
<?php
namespace JasonRoman\NbaApi\Request\GLeague\Api\Team;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\GLeague\SubdomainTeamSlugParam;
use JasonRoman\NbaApi\Params\SeasonParam;
use JasonRoman\NbaApi\Params\TeamIdParam;
use JasonRoman\NbaApi\Request\GLeague\Api\AbstractGLeagueApiRequest;
use Symfony\Component\Validator\Constraints as Assert;
class TeamAssignmentsRequest extends AbstractGLeagueApiRequest
{
const ENDPOINT = '/wp-json/api/v1/assignments.json';
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiChoice(SubdomainTeamSlugParam::OPTIONS)
*
* @var string
*/
public $subdomainTeamSlug;
/**
* This does not appear to have any effect, even if changing the value.
*
* @Assert\Type("string")
* @ApiAssert\ApiRegex(SeasonParam::FORMAT)
*
* @var string
*/
public $season;
/**
* Even though using the subdomain slug, this is still required and must be the id that matches the subdomain slug.
*
* @Assert\Type("int")
* @Assert\Range(min = TeamIdParam::MIN, max = TeamIdParam::MAX)
*
* @var int
*/
public $teamId;
/**
* @Assert\Type("bool")
*
* @var bool
*/
public $recalled;
}