alias) { $this->alias = $this->name->getLast(); } if ('self' == $this->alias || 'parent' == $this->alias) { throw new PHPParser_Error(sprintf( 'Cannot use "%s" as "%s" because "%2$s" is a special class name', $this->name, $this->alias )); } } }