Property | Type | Description | |
---|---|---|---|
$file | string | The path to the file in which this element is defined | |
$line_number_end | integer | The ending line number of the element within the $file | |
$line_number_start | integer | The starting line number of the element within the $file |
Method | Description | |
---|---|---|
__toString ( ) : string | Get a string representation of the context | |
getFile ( ) : string | ||
getLineNumberStart ( ) : integer | * | |
getProjectRelativePath ( ) : string | ||
isInternal ( ) : boolean | ||
serialize ( ) | ||
unserialize ( $serialized ) | ||
withFile ( string $file ) : static | ||
withLineNumberEnd ( integer $line_number ) : static | ||
withLineNumberStart ( integer $line_number ) : static |
public __toString ( ) : string | ||
return | string |
public getLineNumberStart ( ) : integer | ||
return | integer | The starting line number of the element within the file |
public getProjectRelativePath ( ) : string | ||
return | string | The path of the file relative to the project root directory |
public isInternal ( ) : boolean | ||
return | boolean | True if this object is internal to PHP |
public withLineNumberEnd ( integer $line_number ) : static | ||
$line_number | integer | The ending line number of the element within the $file |
return | static | This context with the given value is returned |
public withLineNumberStart ( integer $line_number ) : static | ||
$line_number | integer | |
return | static | This context with the given value is returned |
protected string $file | ||
return | string |
protected int $line_number_end | ||
return | integer |
protected int $line_number_start | ||
return | integer |