\Pop\Code\GeneratorInterfaceGenerator

Interface generator code class

Summary

Methods
Properties
Constants
__construct()
setIndent()
getIndent()
setName()
getName()
setParent()
getParent()
setNamespace()
getNamespace()
setDocblock()
getDocblock()
addMethod()
getMethod()
removeMethod()
render()
__toString()
No public properties found
No constants found
formatMethods()
$docblock
$namespace
$name
$parent
$methods
$indent
$output
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Class name

Type

string

$parent

$parent : string

Parent interface that is extended

Type

string

$methods

$methods : array

Array of method generator objects

Type

array

$indent

$indent : string

Class indent

Type

string

$output

$output : string

Class output

Type

string

Methods

__construct()

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

Constructor

Instantiate the interface generator object

Parameters

string $name
string $parent

getIndent()

getIndent() : string

Get the interface indent

Returns

string

getName()

getName() : string

Get the interface name

Returns

string

getParent()

getParent() : string

Get the interface parent

Returns

string

getMethod()

getMethod(mixed  $method) : \Pop\Code\Generator\/Pop\Code\MethodGenerator

Get a method property

Parameters

mixed $method

Returns

\Pop\Code\Generator\/Pop\Code\MethodGenerator

render()

render(boolean  $ret = false) : mixed

Render interface

Parameters

boolean $ret

Returns

mixed

__toString()

__toString() : string

Print interface

Returns

string

formatMethods()

formatMethods() : string

Format the methods

Returns

string