getLast(); } if ('self' == $alias || 'parent' == $alias) { throw new Error(sprintf( 'Cannot use %s as %s because \'%2$s\' is a special class name', $name, $alias )); } parent::__construct(null, $attributes); $this->name = $name; $this->alias = $alias; } public function getSubNodeNames() { return array('name', 'alias'); } }