_id = $data['id']; $this->_name = $data['name']; $this->_dst = ($data['dst'] == '1'); $this->_offset = $data['offset']; $this->_currentOffset = $data['current_offset']; } /** * Returns the identifier for the timezone. * * @return int */ public function getId() { return $this->_id; } /** * Returns the name of the timezone. * * @return string */ public function getName() { return $this->_name; } /** * Returns whether or not the timezone is currently in Daylight Savings * Time. * * @return bool TRUE if the timezone is in Daylight Savings Time, FALSE * otherwise */ public function inDST() { return $this->_dst; } /** * Returns the offset for the timezone. * * @var int */ public function getOffset() { return $this->_offset; } /** * Returns the current offset for the timezone. * * @var int */ public function getCurrentOffset() { return $this->_currentOffset; } }