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