/** * 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); }
/** * 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); }