UseTrait
Use trait
Tags
Table of Contents
- $uses : array<string|int, mixed>
- Array of namespaces to use
- addUse() : UseTrait
- Add a namespace to use
- addUses() : UseTrait
- Add namespaces to use
- getUses() : array<string|int, mixed>
- Get uses
- hasUse() : bool
- Has use
- hasUses() : bool
- Has uses
Properties
$uses
Array of namespaces to use
protected
array<string|int, mixed>
$uses
= []
Methods
addUse()
Add a namespace to use
public
addUse(string $use[, string $as = null ]) : UseTrait
Parameters
- $use : string
- $as : string = null
Return values
UseTrait —addUses()
Add namespaces to use
public
addUses(array<string|int, mixed> $uses) : UseTrait
Parameters
- $uses : array<string|int, mixed>
Return values
UseTrait —getUses()
Get uses
public
getUses() : array<string|int, mixed>
Return values
array<string|int, mixed> —hasUse()
Has use
public
hasUse(string $use) : bool
Parameters
- $use : string
Return values
bool —hasUses()
Has uses
public
hasUses() : bool