/** * @param string $name * @param string $title * * @throws ArgumentTypeException */ function __construct($name, $title = '') { $this->attrs = new NamedObjectList([KeyValuePair::getClass()]); $this->children = new NamedObjectList([Block::getClass(), AbstractField::getClass()]); parent::__construct($name); $this->title($title); $this->isValid = true; $this->templateName = self::DEFAULT_TEMPLATE; }