Ejemplo n.º 1
0
 /**
  * Доступ на чтение к свойствам объекта
  *
  * @param string $property
  *
  * @return mixed
  */
 public function __get($property)
 {
     switch ($property) {
         case 'items':
             return $this->{$property};
         default:
             return parent::__get($property);
     }
 }