Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (36 sloc) 1.02 KB
<?php
namespace JasonRoman\NbaApi\Request\Stats\Stats\Game;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\GameIdParam;
use JasonRoman\NbaApi\Params\Stats\EndPeriodParam;
use JasonRoman\NbaApi\Params\Stats\StartPeriodParam;
use JasonRoman\NbaApi\Request\Stats\Stats\AbstractStatsStatsRequest;
use Symfony\Component\Validator\Constraints as Assert;
class PlayByPlayMiniRequest extends AbstractStatsStatsRequest
{
const ENDPOINT = '/stats/playbyplay';
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(GameIdParam::FORMAT)
*
* @var string
*/
public $gameId;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = StartPeriodParam::MIN, max = StartPeriodParam::MAX)
*
* @var string
*/
public $startPeriod;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = EndPeriodParam::MIN, max = EndPeriodParam::MAX)
*
* @var string
*/
public $endPeriod;
}
You can’t perform that action at this time.