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) 942 Bytes
<?php
namespace JasonRoman\NbaApi\Request\Data\Prod\Game;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\GameIdParam;
use JasonRoman\NbaApi\Request\Data\Prod\AbstractDataProdRequest;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get the play-by-play for a specific period of a game. Valid from 2014-2015 season and later.
*/
class PlayByPlayRequest extends AbstractDataProdRequest
{
const ENDPOINT = '/prod/v1/{gameDate}/{gameId}_pbp_{period}.json';
/**
* @Assert\NotBlank()
* @Assert\Type("\DateTime")
*
* @var \DateTime
*/
public $gameDate;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(GameIdParam::FORMAT)
*
* @var string
*/
public $gameId;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = 1)
*
* @var int
*/
public $period;
}
You can’t perform that action at this time.