\Pop\Code\GeneratorNamespaceGenerator

Namespace generator code class

Summary

Methods
Properties
Constants
__construct()
setNamespace()
getNamespace()
setUse()
setUses()
render()
__toString()
No public properties found
No constants found
No protected methods found
$namespace
$use
$docblock
$indent
$output
N/A
No private methods found
No private properties found
N/A

Properties

$namespace

$namespace : string

Namespace

Type

string

$use

$use : array

Array of namespaces to use

Type

array

$indent

$indent : string

Namespace indent

Type

string

$output

$output : string

Namespace output

Type

string

Methods

__construct()

__construct(string  $namespace) : \Pop\Code\Generator\NamespaceGenerator

Constructor

Instantiate the property generator object

Parameters

string $namespace

Returns

\Pop\Code\Generator\NamespaceGenerator

getNamespace()

getNamespace() : string

Get the namespace

Returns

string

setUse()

setUse(string  $use, string  $as = null) : \Pop\Code\Generator\NamespaceGenerator

Set a namespace to use

Parameters

string $use
string $as

Returns

\Pop\Code\Generator\NamespaceGenerator

render()

render(boolean  $ret = false) : mixed

Render namespace

Parameters

boolean $ret

Returns

mixed

__toString()

__toString() : string

Print namespace

Returns

string