public function get($property)
        {
            if (!is_string($property) || empty($property)) {
                throw new Exception(
                        'Invalid argument: $property must be a non-empty string');
            }

            $method = 'get' . self::_normalizePropertyName($property);

            if (method_exists($this, $method)) {
                return $this->$method();
            } elseif (isset($this->_properties[$property])) {
                return $this->_properties[$property];
            }

            return null;
        }
public function get($property)
        {
            if (!is_string($property) || empty($property)) {
                throw new Exception(
                        'Invalid argument: $property must be a non-empty string');
            }

            $method = 'get' . self::_normalizePropertyName($property);

            if (method_exists($this, $method)) {
                return $this->$method();
            } elseif (isset($this->_properties[$property])) {
                return $this->_properties[$property];
            }

            return null;
        }
public function get ( $ property ) { if ( ! is_string ( $ property ) || empty ( $ property ) ) { throw new Exception ( 'Invalid argument: $property must be a non-empty string' ) ; } $ method = 'get' . self :: _normalizePropertyName ( $ property ) ; if ( method_exists ( $ this , $ method ) ) { return $ this -> $ method ( ) ; } elseif ( isset ( $ this -> _properties [ $ property ] ) ) { return $ this -> _properties [ $ property ] ; } return null ; }
Returns the value of the given property

If the given property is native (id, class, title, etc), the matching
get method will be used. Otherwise, it will return the matching custom
property, or null if not found.

@param  string $property           property name
@return mixed                      the property's value or null
@throws Exception  if property name is invalid
Returns the value of the given property