Documentation

UseTrait

Use trait

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.1.0

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
Return values
bool

Search results