Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 730 Bytes
<?php
namespace JasonRoman\NbaApi\Request\Data\Prod\Stats;
use JasonRoman\NbaApi\Request\Data\Prod\AbstractDataProdRequest;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get stats for each team for their last 5 games. Appears to only work for 2015.
*/
class TeamStatsLastFiveGamesRequest extends AbstractDataProdRequest
{
const ENDPOINT = '/prod/v1/{year}/team_stats_last_five_games.json';
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = 2015, max = 2015)
*
* @var int
*/
public $year;
/**
* {@inheritdoc}
*/
public static function getExampleValues(): array
{
return [
'year' => 2015,
];
}
}
You can’t perform that action at this time.