src/Data/DefaultModel.php
public function getProperty($propertyName)
    {
        if ('id' === $propertyName) {
            return $this->getID();
        }

        if (\array_key_exists($propertyName, $this->arrProperties)) {
            return $this->arrProperties[$propertyName];
        }

        return null;
    }
public function getProperty($propertyName)
    {
        if ('id' === $propertyName) {
            return $this->getID();
        }

        if (\array_key_exists($propertyName, $this->arrProperties)) {
            return $this->arrProperties[$propertyName];
        }

        return null;
    }
public function getProperty ( $ propertyName ) { if ( 'id' === $ propertyName ) { return $ this -> getID ( ) ; } if ( \ array_key_exists ( $ propertyName , $ this -> arrProperties ) ) { return $ this -> arrProperties [ $ propertyName ] ; } return null ; }
Fetch the property with the given name from the model.

This method returns null if an unknown property is retrieved.

@param string $propertyName The property name to be retrieved.

@return mixed The value of the given property.
Fetch the property with the given name from the model .