private function setTimeString($input) { // HH:MM:SS, HHMMSS if (strlen((string) $input) > strlen('000000') && TypeUtils::isInteger($input)) { // unix timestamp list($this->hour, $this->minute, $this->second) = explode(':', date('H:i:s', $input)); } else { if (preg_match('/[^\\d]/', $input)) { $chunks = preg_split('/[^\\d]+/', $input); } else { Assert::notImplemented('"HHMMSS" syntax not implemented in the Time parser'); } $setters = array('hour', 'minute', 'second'); foreach ($chunks as $k => $v) { $this->{'set' . $setters[$k]}($v); } } }
function offsetUnset($offset) { Assert::notImplemented('not implemented, and won\'t be'); }
function renew() { Assert::notImplemented(); }
function drop() { Assert::notImplemented(); }
function setEncoding($encoding) { Assert::notImplemented(); }