Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
219 lines (193 sloc) 4.74 KB
<?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\Params\SeasonParam;
use JasonRoman\NbaApi\Params\Stats\ConferenceParam;
use JasonRoman\NbaApi\Params\Stats\DivisionParam;
use JasonRoman\NbaApi\Params\Stats\GameSegmentParam;
use JasonRoman\NbaApi\Params\Stats\LastNGamesParam;
use JasonRoman\NbaApi\Params\Stats\LocationParam;
use JasonRoman\NbaApi\Params\Stats\MeasureTypeParam;
use JasonRoman\NbaApi\Params\Stats\MonthParam;
use JasonRoman\NbaApi\Params\Stats\OutcomeParam;
use JasonRoman\NbaApi\Params\Stats\PeriodParam;
use JasonRoman\NbaApi\Params\Stats\PerModeParam;
use JasonRoman\NbaApi\Params\Stats\PoRoundParam;
use JasonRoman\NbaApi\Params\Stats\SeasonSegmentParam;
use JasonRoman\NbaApi\Params\Stats\SeasonTypeParam;
use JasonRoman\NbaApi\Params\Stats\ShotClockRangeParam;
use JasonRoman\NbaApi\Params\TeamIdParam;
use JasonRoman\NbaApi\Request\Stats\Stats\AbstractStatsStatsRequest;
use Symfony\Component\Validator\Constraints as Assert;
class PlayerYearOverYearStatsRequest extends AbstractStatsStatsRequest
{
const ENDPOINT = '/stats/playerdashboardbyyearoveryear';
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiChoice(MeasureTypeParam::OPTIONS_NO_DEFENSE_FOUR_FACTORS_OPPONENT)
*
* @var string
*/
public $measureType;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiChoice(PerModeParam::OPTIONS_ALL)
*
* @var string
*/
public $perMode;
/**
* @Assert\NotNull()
* @Assert\Type("bool")
*
* @var bool
*/
public $plusMinus;
/**
* @Assert\NotNull()
* @Assert\Type("bool")
*
* @var bool
*/
public $paceAdjust;
/**
* @Assert\NotNull()
* @Assert\Type("bool")
*
* @var bool
*/
public $rank;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(LeagueIdParam::OPTIONS_NBA_G_LEAGUE)
*
* @var string
*/
public $leagueId;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiRegex(SeasonParam::FORMAT)
*
* @var string
*/
public $season;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\ApiChoice(SeasonTypeParam::OPTIONS_WITH_ALL_STAR)
*
* @var string
*/
public $seasonType;
/**
* @Assert\Type("int")
* @Assert\Range(min = PoRoundParam::MIN_ALL, max = PoRoundParam::MAX)
*
* @var int
*/
public $poRound;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = PlayerIdParam::MIN, max = PlayerIdParam::MAX)
*
* @var int
*/
public $playerId;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(OutcomeParam::OPTIONS)
*
* @var string
*/
public $outcome;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(LocationParam::OPTIONS)
*
* @var string
*/
public $location;
/**
* @Assert\Type("int")
* @Assert\Range(min = MonthParam::MIN_ALL, max = MonthParam::MAX)
*
* @var int
*/
public $month;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(SeasonSegmentParam::OPTIONS)
*
* @var string
*/
public $seasonSegment;
/**
* @Assert\Type("\DateTime")
*
* @var \DateTime
*/
public $dateFrom;
/**
* @Assert\Type("\DateTime")
*
* @var \DateTime
*/
public $dateTo;
/**
* @Assert\Type("int")
* @Assert\Range(min = TeamIdParam::MIN_ALL, max = TeamIdParam::MAX)
*
* @var int
*/
public $opponentTeamId;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(ConferenceParam::OPTIONS)
*
* @var string
*/
public $vsConference;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(DivisionParam::OPTIONS_WITH_CONFERENCE)
*
* @var string
*/
public $vsDivision;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(GameSegmentParam::OPTIONS)
*
* @var string
*/
public $gameSegment;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = PeriodParam::MIN_ALL, max = PeriodParam::MAX)
*
* @var int
*/
public $period;
/**
* @Assert\Type("string")
* @ApiAssert\ApiChoice(ShotClockRangeParam::OPTIONS)
*
* @var string
*/
public $shotClockRange;
/**
* @Assert\NotBlank()
* @Assert\Type("int")
* @Assert\Range(min = LastNGamesParam::MIN_ALL, max = LastNGamesParam::MAX)
*
* @var int
*/
public $lastNGames;
}
You can’t perform that action at this time.