PHP Class Pinq\Parsing\FunctionLocation

Author: Elliot Levin ([email protected])
Inheritance: implements Pinq\Parsing\IFunctionLocation
Show file Open project: timetoogo/pinq

Protected Properties

Property Type Description
$endLine integer
$filePath string
$hash string
$namespace string | null
$startLine integer

Public Methods

Method Description
__construct ( $filePath, $namespace, $startLine, $endLine )
fromReflection ( ReflectionFunctionAbstract $reflection ) : self Creates a function location instance from the supplied reflection.
getEndLine ( )
getFilePath ( )
getHash ( )
getNamespace ( )
getStartLine ( )
inNamespace ( )

Method Details

__construct() public method

public __construct ( $filePath, $namespace, $startLine, $endLine )

fromReflection() public static method

Creates a function location instance from the supplied reflection.
public static fromReflection ( ReflectionFunctionAbstract $reflection ) : self
$reflection ReflectionFunctionAbstract
return self

getEndLine() public method

public getEndLine ( )

getFilePath() public method

public getFilePath ( )

getHash() public method

public getHash ( )

getNamespace() public method

public getNamespace ( )

getStartLine() public method

public getStartLine ( )

inNamespace() public method

public inNamespace ( )

Property Details

$endLine protected property

protected int $endLine
return integer

$filePath protected property

protected string $filePath
return string

$hash protected property

protected string $hash
return string

$namespace protected property

protected string|null $namespace
return string | null

$startLine protected property

protected int $startLine
return integer