Schema/Group.php
public function getDefinitionByName($name)
    {
        if (!array_key_exists($name, $this->definitions)) {
            throw new \InvalidArgumentException(sprintf('Can\'t find "%s" Definition.', $name));
        }

        return $this->definitions[$name];
    }
public function getDefinitionByName($name)
    {
        if (!array_key_exists($name, $this->definitions)) {
            throw new \InvalidArgumentException(sprintf('Can\'t find "%s" Definition.', $name));
        }

        return $this->definitions[$name];
    }
public function getDefinitionByName ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> definitions ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Can\'t find "%s" Definition.' , $ name ) ) ; } return $ this -> definitions [ $ name ] ; }
Returns a definition by name.

@param $name

@throws \InvalidArgumentException

@return Definition
Returns a definition by name .