PhpParser\Node\NullableType::__construct PHP 메소드

__construct() 공개 메소드

Constructs a nullable type (wrapping another type).
public __construct ( string | Name $type, array $attributes = [] )
$type string | Name Type
$attributes array Additional attributes
    public function __construct($type, array $attributes = array())
    {
        parent::__construct($attributes);
        $this->type = $type;
    }