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