Documentation

UseTrait

Use trait

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

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

license

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

version
5.0.0

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
static

addUses()

Add namespaces to use

public addUses(array<string|int, mixed> $uses) : static
Parameters
$uses : array<string|int, mixed>
Return values
static

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

        
On this page

Search results