PHP Class Pop\Code\Reflection

Author: Nick Sagona, III ([email protected])
Inheritance: extends ReflectionClass
Show file Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Property Type Description
$code string Code to reflect
$generator Generator Code generator object

Public Methods

Method Description
__construct ( string $code ) : Reflection Constructor
code ( ) : string Get the code string
factory ( string $code ) : Reflection Static method to instantiate the code reflection object and return itself to facilitate chaining methods together.
generator ( ) : Generator Get the code generator

Protected Methods

Method Description
buildGenerator ( ) : void Build the code generator based the reflection class
getClassMethods ( ) : void Get methods
getClassNamespace ( ) : void Get the namespace and uses, if any
getClassProperties ( ) : void Get properties

Method Details

__construct() public method

Instantiate the code reflection object
public __construct ( string $code ) : Reflection
$code string
return Reflection

buildGenerator() protected method

Build the code generator based the reflection class
protected buildGenerator ( ) : void
return void

code() public method

Get the code string
public code ( ) : string
return string

factory() public static method

Static method to instantiate the code reflection object and return itself to facilitate chaining methods together.
public static factory ( string $code ) : Reflection
$code string
return Reflection

generator() public method

Get the code generator
public generator ( ) : Generator
return Generator

getClassMethods() protected method

Get methods
protected getClassMethods ( ) : void
return void

getClassNamespace() protected method

Get the namespace and uses, if any
protected getClassNamespace ( ) : void
return void

getClassProperties() protected method

Get properties
protected getClassProperties ( ) : void
return void

Property Details

$code protected property

Code to reflect
protected string $code
return string

$generator protected property

Code generator object
protected Generator,Pop\Code $generator
return Generator