Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param string $language ISO639-1 language code
  */
 public function __construct($language)
 {
     parent::__construct();
     if ($language !== null) {
         $this->setLanguage($language);
     }
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param DateTime|int $from
  * @param DateTime|int $to
  */
 public function __construct($from = null, $to = null)
 {
     parent::__construct();
     if ($from !== null) {
         $this->setFromDate($from);
     }
     if ($to !== null) {
         $this->setToDate($to);
     }
 }
Exemplo n.º 3
0
 /**
  * Constructor
  *
  * @param int $fantasyLeagueId
  * @param DateTime|int $startTime
  * @param DateTime|int $endTime
  * @param int $matchId
  * @param int $seriesId
  * @param int $accountId
  */
 public function __construct($fantasyLeagueId, $accountId = null, $startTime = null, $endTime = null, $matchId = null, $seriesId = null)
 {
     parent::__construct();
     $this->setFantasyLeagueId($fantasyLeagueId);
     if ($startTime !== null) {
         $this->setStartTime($startTime);
     }
     if ($endTime !== null) {
         $this->setEndTime($endTime);
     }
     if ($matchId !== null) {
         $this->setMatchId($matchId);
     }
     if ($seriesId !== null) {
         $this->setSeriesId($seriesId);
     }
     if ($accountId !== null) {
         $this->setAccountId($accountId);
     }
 }
Exemplo n.º 4
0
 /**
  * Constructor
  *
  * @param string $iconName
  * @param int $iconType
  */
 public function __construct($iconName, $iconType = IconType::NORMAL)
 {
     parent::__construct();
     $this->setIconName($iconName);
     $this->setIconType($iconType);
 }