Menu

## Use_
in package
implements Builder

Use_.php : 10

### Interfaces, Classes and Traits

Builder

### Table of Contents

$alias : mixed
$name : mixed
$type : mixed
__construct() : mixed
  Creates a name use (alias) builder.
as() : $this
  Sets alias for used name.
getNode() : Use_
  Returns the built node.

### Properties

#### $alias

Use_.php : 14
`protected mixed $alias = null`

#### $name

Use_.php : 12
`protected mixed $name`

#### $type

Use_.php : 13
`protected mixed $type`

### Methods

#### __construct()

Use_.php : 22

Creates a name use (alias) builder.

`public __construct(Name|string $name, int $type) : mixed`

##### Parameters

$name : Name|string

  Name of the entity (namespace, class, function, constant) to alias

$type : int

  One of the Stmt\Use_::TYPE_* constants

##### Return values

mixed —

#### as()

Use_.php : 34

Sets alias for used name.

`public as(string $alias) : $this`

##### Parameters

$alias : string

  Alias to use (last component of full name by default)

##### Return values

$this —

The builder instance (for fluid interface)

#### getNode()

Use_.php : 44

Returns the built node.

`public getNode() : Use_`

##### Return values

Use_ —

The built node

## Search results