PHP Interface Pinq\Parsing\IMagicConstants

Author: Elliot Levin ([email protected])
Show file Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method Description
getClass ( ) : string Gets the value of the __CLASS__ magic constant.
getDirectory ( ) : string Gets the value of the __DIR__ magic constant.
getFile ( ) : string Gets the value of the __FILE__ magic constant.
getFunction ( boolean $isWithinClosure ) : string Gets the value of the __FUNCTION__ magic constant.
getMethod ( boolean $isWithinClosure ) : string Gets the value of the __METHOD__ magic constant.
getNamespace ( ) : string Gets the value of the __NAMESPACE__ magic constant.
getTrait ( ) : string Gets the value of the __TRAIT__ magic constant.

Method Details

getClass() public method

Gets the value of the __CLASS__ magic constant.
public getClass ( ) : string
return string

getDirectory() public method

Gets the value of the __DIR__ magic constant.
public getDirectory ( ) : string
return string

getFile() public method

Gets the value of the __FILE__ magic constant.
public getFile ( ) : string
return string

getFunction() public method

Gets the value of the __FUNCTION__ magic constant.
public getFunction ( boolean $isWithinClosure ) : string
$isWithinClosure boolean If within a closure defined in the function
return string

getMethod() public method

Gets the value of the __METHOD__ magic constant.
public getMethod ( boolean $isWithinClosure ) : string
$isWithinClosure boolean If within a closure defined in the function
return string

getNamespace() public method

Gets the value of the __NAMESPACE__ magic constant.
public getNamespace ( ) : string
return string

getTrait() public method

Gets the value of the __TRAIT__ magic constant.
public getTrait ( ) : string
return string