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) 799 Bytes
<?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 preview of a game used by the CMS. Valid from 2012-2013 regular season and later.
*/
class PreviewRequest extends AbstractDataCmsRequest
{
const ENDPOINT = '/json/cms/noseason/game/{gameDate}/{gameId}/preview.json';
/**
* @Assert\NotBlank()
* @Assert\Type("\DateTime")
*
* @var \DateTime
*/
public $gameDate;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(GameIdParam::FORMAT)
*
* @var string
*/
public $gameId;
}
You can’t perform that action at this time.