src/Sulu/Component/Content/Compat/Block/BlockPropertyType.php
public function getProperty($name)
    {
        foreach ($this->getChildProperties() as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }

        return;
    }
public function getProperty($name)
    {
        foreach ($this->getChildProperties() as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }

        return;
    }
public function getProperty ( $ name ) { foreach ( $ this -> getChildProperties ( ) as $ property ) { if ( $ property -> getName ( ) === $ name ) { return $ property ; } } return ; }
returns child property with given name.

@param string $name

@return null|PropertyInterface
returns child property with given name .