Ejemplo n.º 1
0
 /**
  * Retrieves a property or method value.
  *
  * First tries the envelope object's property storage, then its methods
  * and finally the inspected element reflection.
  *
  * @param string $name Property name
  * @return mixed
  */
 public function __get($name)
 {
     $key = ucfirst($name);
     if (isset(self::$reflectionMethods[$this->reflectionType]['get' . $key])) {
         return $this->{'get' . $key}();
     }
     if (isset(self::$reflectionMethods[$this->reflectionType]['is' . $key])) {
         return $this->{'is' . $key}();
     }
     return $this->reflection->__get($name);
 }