Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?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 recap article for a game. Valid from 2014-2015 preseason and possibly later.
*/
class RecapRequest extends AbstractDataProdRequest
{
const ENDPOINT = '/prod/v1/{gameDate}/{gameId}_recap_article.json';
/**
* @Assert\NotBlank()
* @Assert\Type("\DateTime")
*
* @var \DateTime
*/
public $gameDate;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(GameIdParam::FORMAT)
*
* @var string
*/
public $gameId;
/**
* {@inheritdoc}
*/
public static function getExampleValues(): array
{
return [
'gameDate' => new \DateTime('2015-02-01'),
'gameId' => '0021400717',
];
}
}