public function getPropertyByName($name)
    {
        foreach ($this->properties as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }
    }
public function getPropertyByName($name)
    {
        foreach ($this->properties as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }
    }
public function getPropertyByName ( $ name ) { foreach ( $ this -> properties as $ property ) { if ( $ property -> getName ( ) === $ name ) { return $ property ; } } }
Returns a property by name

@param string $name
@return null|Type
Returns a property by name