Properties

$constants

$constants : array

Array of constant generator objects

Type

array

$methods

$methods : array

Array of method generator objects

Type

array

$name

$name : string

Name

Type

string

$indent

$indent : integer

Code indent spaces

Type

integer

$output

$output : string

Output string

Type

string

$parent

$parent : string

Parent interfaces that are extended

Type

string

Methods

hasConstant()

hasConstant(mixed  $constant) : boolean

Has a constant

Parameters

mixed $constant

Returns

boolean

hasConstants()

hasConstants() : boolean

Has constants

Returns

boolean

getConstants()

getConstants() : array

Get all constants

Returns

array

hasMethod()

hasMethod(mixed  $method) : boolean

Has a method

Parameters

mixed $method

Returns

boolean

hasMethods()

hasMethods() : boolean

Has methods

Returns

boolean

getMethods()

getMethods() : array

Get all methods

Returns

array

getName()

getName() : string

Get the name

Returns

string

hasName()

hasName() : boolean

Get the name

Returns

boolean

hasNamespace()

hasNamespace() : boolean

Has a namespace generator object

Returns

boolean

hasDocblock()

hasDocblock() : boolean

Has docblock generator object

Returns

boolean

getDesc()

getDesc() : string

Get the docblock description

Returns

string

hasDesc()

hasDesc() : boolean

Has a docblock description

Returns

boolean

getIndent()

getIndent() : integer

Get the indent

Returns

integer

hasIndent()

hasIndent() : boolean

Has indent

Returns

boolean

printIndent()

printIndent() : string

Print the indent

Returns

string

getOutput()

getOutput() : string

Get the output

Returns

string

hasOutput()

hasOutput() : boolean

Has output

Returns

boolean

isRendered()

isRendered() : boolean

Is rendered (alias to hasOutput())

Returns

boolean

render()

render() : string

Render interface

Returns

string

__construct()

__construct(string  $name, string  $parent = null) 

Constructor

Instantiate the interface generator object

Parameters

string $name
string $parent

getParent()

getParent() : string

Get the interface parent

Returns

string

hasParent()

hasParent() : boolean

Has parent

Returns

boolean

__toString()

__toString() : string

Print interface

Returns

string

formatConstants()

formatConstants() : string

Format the constants

Returns

string

formatMethods()

formatMethods() : string

Format the methods

Returns

string