PHP Class PhpParser\Node\Stmt\UseUse

Inheritance: extends PhpParser\Node\Stmt
Mostrar archivo Open project: nikic/php-parser Class Usage Examples

Public Properties

Property Type Description
$alias Alias
$name Namespace, class, function or constant to alias
$type One of the Stmt\Use_::TYPE_* constants. Will only differ from TYPE_UNKNOWN for mixed group uses

Public Methods

Method Description
__construct ( Name $name, null | string $alias = null, integer $type = Use_::TYPE_UNKNOWN, array $attributes = [] ) Constructs an alias (use) node.
getSubNodeNames ( )

Method Details

__construct() public method

Constructs an alias (use) node.
public __construct ( Name $name, null | string $alias = null, integer $type = Use_::TYPE_UNKNOWN, array $attributes = [] )
$name PhpParser\Node\Name Namespace/Class to alias
$alias null | string Alias
$type integer Type of the use element (for mixed group use declarations only)
$attributes array Additional attributes

getSubNodeNames() public method

public getSubNodeNames ( )

Property Details

$alias public_oe property

Alias
public $alias

$name public_oe property

Namespace, class, function or constant to alias
public $name

$type public_oe property

One of the Stmt\Use_::TYPE_* constants. Will only differ from TYPE_UNKNOWN for mixed group uses
public $type