/** * Constructor. * TODO visiblity * @param int $totalSeconds the total time-zone offset in seconds, from -64800 to +64800 */ public function __construct($totalSeconds) { parent::__construct(); $this->totalSeconds = $totalSeconds; $this->id = $this->buildId($totalSeconds); }
/** * Constructor. * TODO Package visiblity * @param string $id the time-zone ID, not null * @param ZoneRules $rules the rules, null for lazy lookup */ public function __construct($id, ZoneRules $rules) { parent::__construct(); $this->id = $id; $this->rules = $rules; }