Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (45 sloc) 1.36 KB
<?php
namespace JasonRoman\NbaApi\Request\Stats\Stats\Team;
use JasonRoman\NbaApi\Constraints as ApiAssert;
use JasonRoman\NbaApi\Params\LeagueIdParam;
use JasonRoman\NbaApi\Params\Stats\PerModeParam;
use JasonRoman\NbaApi\Params\Stats\SeasonTypeParam;
use JasonRoman\NbaApi\Params\TeamIdParam;
use JasonRoman\NbaApi\Request\Stats\Stats\AbstractStatsStatsRequest;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Team franchise leaders with corresponding ranks. You can pass null for every parameter but will not get data.
* Also none of the values are error-checked so this endpoint should always return a 200 HTTP code.
*/
class TeamFranchiseLeadersRankRequest extends AbstractStatsStatsRequest
{
const ENDPOINT = '/stats/franchiseleaderswrank';
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(LeagueIdParam::OPTIONS_NBA_WNBA_G_LEAGUE)
*
* @var string
*/
public $leagueId;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(SeasonTypeParam::OPTIONS)
*
* @var string
*/
public $seasonType;
/**
* @Assert\Type("int")
* @Assert\Range(min = TeamIdParam::MIN, max = TeamIdParam::MAX)
*
* @var int
*/
public $teamId;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(PerModeParam::OPTIONS_ALL)
*
* @var string
*/
public $perMode;
}
You can’t perform that action at this time.