Exemplo n.º 1
0
 /**
  * is utilized for reading data from inaccessible members.
  *
  * @param   $name  string
  *
  * @return  mixed
  */
 public function __get($name)
 {
     $allowNames = array('io');
     if (in_array($name, $allowNames)) {
         return $this->{$name};
     }
     return parent::__get($name);
 }
Exemplo n.º 2
0
 /**
  * is utilized for reading data from inaccessible members.
  *
  * @param   $name  string
  *
  * @return  mixed
  */
 public function __get($name)
 {
     $allowNames = array('environment', 'response');
     if (in_array($name, $allowNames)) {
         return $this->{$name};
     }
     return parent::__get($name);
 }