public function getProperty($var = null)
    {
        if (null === $var) {
            return $this->properties;
        }

        if (isset($this->properties[$var])) {
            return $this->properties[$var];
        }

        return;
    }
public function getProperty($var = null)
    {
        if (null === $var) {
            return $this->properties;
        }

        if (isset($this->properties[$var])) {
            return $this->properties[$var];
        }

        return;
    }
public function getProperty ( $ var = null ) { if ( null === $ var ) { return $ this -> properties ; } if ( isset ( $ this -> properties [ $ var ] ) ) { return $ this -> properties [ $ var ] ; } return ; }
Returns defined property of the content or all the properties.

@param string $var the property to be return, if NULL, all properties are returned

@return mixed The property value or NULL if unfound
Returns defined property of the content or all the properties .