\Pop\Code\Generator\TraitsUseTrait

Use trait

Summary

Methods
Properties
Constants
addUse()
addUses()
hasUse()
hasUses()
getUses()
No public properties found
No constants found
No protected methods found
$uses
N/A
No private methods found
No private properties found
N/A

Properties

$uses

$uses : array

Array of namespaces to use

Type

array

Methods

addUse()

addUse(string  $use, string  $as = null) : \Pop\Code\Generator\Traits\UseTrait

Add a namespace to use

Parameters

string $use
string $as

Returns

\Pop\Code\Generator\Traits\UseTrait

hasUse()

hasUse(string  $use) : boolean

Has use

Parameters

string $use

Returns

boolean

hasUses()

hasUses() : boolean

Has uses

Returns

boolean

getUses()

getUses() : array

Get uses

Returns

array