PhpParser\Node\Name::__construct PHP Method

__construct() public method

Constructs a name node.
public __construct ( string | array | self $name, array $attributes = [] )
$name string | array | self Name as string, part array or Name instance (copy ctor)
$attributes array Additional attributes
    public function __construct($name, array $attributes = array())
    {
        parent::__construct($attributes);
        $this->parts = self::prepareName($name);
    }