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 JasonRoman\NbaApi\Response\ResponseType;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Get the game book PDF of a game. Some games are missing. Use the other game book request for more reliability.
* Valid from 2014-2015 preseason and later.
*/
class GameBookRequest extends AbstractDataProdRequest
{
const ENDPOINT = '/prod/v1/{gameDate}/{gameId}_Book.pdf';
const DEFAULT_RESPONSE_TYPE = ResponseType::PDF;
/**
* @Assert\NotBlank()
* @Assert\Type("\DateTime")
*
* @var \DateTime
*/
public $gameDate;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(GameIdParam::FORMAT)
*
* @var string
*/
public $gameId;
}