Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 782 Bytes
<?php
namespace JasonRoman\NbaApi\Request\Stats\Stats\Player;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\LeagueIdParam;
use JasonRoman\NbaApi\Params\PlayerIdParam;
use JasonRoman\NbaApi\Request\Stats\Stats\AbstractStatsStatsRequest;
use Symfony\Component\Validator\Constraints as Assert;
class PlayerInfoRequest extends AbstractStatsStatsRequest
{
const ENDPOINT = '/stats/commonplayerinfo';
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = PlayerIdParam::MIN, max = PlayerIdParam::MAX)
*
* @var int
*/
public $playerId;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(LeagueIdParam::OPTIONS_NBA_G_LEAGUE)
*
* @var string
*/
public $leagueId;
}
You can’t perform that action at this time.