Пример #1
0
 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);
         }
     }
 }
Пример #2
0
 function offsetUnset($offset)
 {
     Assert::notImplemented('not implemented, and won\'t be');
 }
Пример #3
0
 function renew()
 {
     Assert::notImplemented();
 }
Пример #4
0
 function drop()
 {
     Assert::notImplemented();
 }
Пример #5
0
 function setEncoding($encoding)
 {
     Assert::notImplemented();
 }