public function getProperty($name, $value = null)
    {
        if (!isset($this->properties[$name])) {
            $this->properties[$name] = new VariableProperty($this, $name, $value);
        }

        return $this->properties[$name];
    }
public function getProperty($name, $value = null)
    {
        if (!isset($this->properties[$name])) {
            $this->properties[$name] = new VariableProperty($this, $name, $value);
        }

        return $this->properties[$name];
    }
public function getProperty ( $ name , $ value = null ) { if ( ! isset ( $ this -> properties [ $ name ] ) ) { $ this -> properties [ $ name ] = new VariableProperty ( $ this , $ name , $ value ) ; } return $ this -> properties [ $ name ] ; }
Get a VariableProperty for accessing methods, indexes and properties of
the current variable.

@param string $name  Property name
@param mixed  $value The default VariableProperty value

@return VariableProperty
Get a VariableProperty for accessing methods indexes and properties of the current variable .