Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (29 sloc) 834 Bytes
<?php
namespace JasonRoman\NbaApi\Request\Data\Prod\Team;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\TeamIdParam;
use JasonRoman\NbaApi\Request\Data\Prod\AbstractDataProdRequest;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get the schedule of a team for a given season. Same as other request except uses team id, available from 2016.
*/
class TeamScheduleByIdRequest extends AbstractDataProdRequest
{
const ENDPOINT = '/prod/v1/{year}/teams/{teamId}/schedule.json';
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = 2016)
*
* @var int
*/
public $year;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @ApiAssert\ApiChoice(TeamIdParam::OPTIONS)
*
* @var int
*/
public $teamId;
}
You can’t perform that action at this time.