Sulu\Component\Content\Compat\Block\BlockPropertyType::getChild PHP 메소드

getChild() 공개 메소드

returns property with given name.
public getChild ( string $name ) : Sulu\Component\Content\Compat\PropertyInterface
$name string of property
리턴 Sulu\Component\Content\Compat\PropertyInterface
    public function getChild($name)
    {
        foreach ($this->childProperties as $child) {
            if ($child->getName() === $name) {
                return $child;
            }
        }
        throw new NoSuchPropertyException();
    }