src/Data/FormatAbleObject.php
public function getProperty($name)
    {
        if (!$this->hasProperty($name)) {
            return;
        }

        if (strstr($name, '.')) {
            $value = false;
            @eval('$value = '.$this->resolveArrayPath($name).';');

            return $value;
        }

        if ($this->isArray()) {
            return $this->object[$name];
        } else {
            return $this->object->$name;
        }
    }
public function getProperty($name)
    {
        if (!$this->hasProperty($name)) {
            return;
        }

        if (strstr($name, '.')) {
            $value = false;
            @eval('$value = '.$this->resolveArrayPath($name).';');

            return $value;
        }

        if ($this->isArray()) {
            return $this->object[$name];
        } else {
            return $this->object->$name;
        }
    }
public function getProperty ( $ name ) { if ( ! $ this -> hasProperty ( $ name ) ) { return ; } if ( strstr ( $ name , '.' ) ) { $ value = false ; @ eval ( '$value = ' . $ this -> resolveArrayPath ( $ name ) . ';' ) ; return $ value ; } if ( $ this -> isArray ( ) ) { return $ this -> object [ $ name ] ; } else { return $ this -> object -> $ name ; } }
Get Property.

@param string $name

@return mixed
Get Property .