Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?php
namespace JasonRoman\NbaApi\Request\Data\Cms\Game;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\GameIdParam;
use JasonRoman\NbaApi\Request\Data\Cms\AbstractDataCmsRequest;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get the full play-by-play for a game used by the CMS. Valid from xxxx-xxxx preseason and later.
* @todo find when valid from
*/
class FullPlayByPlayRequest extends AbstractDataCmsRequest
{
const ENDPOINT = '/json/cms/noseason/game/{gameDate}/{gameId}/pbp_all.json';
/**
* @Assert\NotBlank()
* @Assert\Type("\DateTime")
*
* @var \DateTime
*/
public $gameDate;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(GameIdParam::FORMAT)
*
* @var string
*/
public $gameId;
}