\Pop\CodeReflection

Reflection code class

Summary

Methods
Properties
Constants
createClass()
createTrait()
createInterface()
createNamespace()
createDocblock()
createFunction()
createMethod()
createProperty()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createClass()

createClass(mixed  $class, string  $name = null) : \Pop\Code\Generator\ClassGenerator

Create class

Parameters

mixed $class
string $name

Returns

\Pop\Code\Generator\ClassGenerator

createTrait()

createTrait(mixed  $trait, string  $name = null) : \Pop\Code\Generator\TraitGenerator

Create trait

Parameters

mixed $trait
string $name

Returns

\Pop\Code\Generator\TraitGenerator

createInterface()

createInterface(mixed  $interface, string  $name = null) : \Pop\Code\Generator\InterfaceGenerator

Create interface

Parameters

mixed $interface
string $name

Returns

\Pop\Code\Generator\InterfaceGenerator

createNamespace()

createNamespace(mixed  $namespace, string  $name = null) : \Pop\Code\Generator\NamespaceGenerator

Create namespace

Parameters

mixed $namespace
string $name

Returns

\Pop\Code\Generator\NamespaceGenerator

createDocblock()

createDocblock(mixed  $docblock, integer  $forceIndent = null) : \Pop\Code\Generator\DocblockGenerator

Create docblock

Parameters

mixed $docblock
integer $forceIndent

Returns

\Pop\Code\Generator\DocblockGenerator

createFunction()

createFunction(mixed  $function, string  $name = null) : \Pop\Code\Generator\FunctionGenerator

Create function

Parameters

mixed $function
string $name

Returns

\Pop\Code\Generator\FunctionGenerator

createMethod()

createMethod(mixed  $method, string  $name = null) : \Pop\Code\Generator\MethodGenerator

Create method

Parameters

mixed $method
string $name

Returns

\Pop\Code\Generator\MethodGenerator

createProperty()

createProperty(mixed  $property, string  $name = null, mixed  $value = null) : \Pop\Code\Generator\PropertyGenerator

Create property

Parameters

mixed $property
string $name
mixed $value

Returns

\Pop\Code\Generator\PropertyGenerator