Пример #1
0
 public function __get($name)
 {
     switch ($name) {
         case 'time_id':
             return $this->start . '-' . $this->end;
             break;
     }
     return parent::__get($name);
 }