UseTrait
Use trait
Tags
Table of Contents
Properties
- $uses : array<string|int, mixed>
- Array of namespaces to use
Methods
- addUse() : static
- Add a namespace to use
- addUses() : static
- 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|null $as = null ]) : static
Parameters
- $use : string
- $as : string|null = null
Return values
staticaddUses()
Add namespaces to use
public
addUses(array<string|int, mixed> $uses) : static
Parameters
- $uses : array<string|int, mixed>
Return values
staticgetUses()
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
boolhasUses()
Has uses
public
hasUses() : bool