PHP Class PHPSA\ScopePointer

Show file Open project: ovr/phpsa Class Usage Examples

Protected Properties

Property Type Description
$object PHPSA\Definition\ClassMethod | PHPSA\Definition\FunctionDefinition

Public Methods

Method Description
__construct ( $object ) Initializes the scopePointer with an object
getObject ( ) : ClassMethod | FunctionDefinition Returns the object.
isClassMethod ( ) : boolean Is the object a class method?
isFunction ( ) : boolean Is the object a function?

Method Details

__construct() public method

Initializes the scopePointer with an object
public __construct ( $object )
$object

getObject() public method

Returns the object.
public getObject ( ) : ClassMethod | FunctionDefinition
return PHPSA\Definition\ClassMethod | PHPSA\Definition\FunctionDefinition

isClassMethod() public method

Is the object a class method?
public isClassMethod ( ) : boolean
return boolean

isFunction() public method

Is the object a function?
public isFunction ( ) : boolean
return boolean

Property Details

$object protected property

protected ClassMethod,PHPSA\Definition|FunctionDefinition,PHPSA\Definition $object
return PHPSA\Definition\ClassMethod | PHPSA\Definition\FunctionDefinition