Use_
    
            
            in package
            
        
    
            
            implements
                            Builder                    
    
    
        
        
    
Interfaces, Classes and Traits
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
    protected
        mixed
    $alias
     = null
        
        
    
$name
    protected
        mixed
    $name
    
        
        
    
$type
    protected
        mixed
    $type
    
        
        
    
Methods
__construct()
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()
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()
Returns the built node.
    public
                getNode() : Use_
    
    
    
        Return values
Use_ —The built node