PHP_Token_FUNCTION
extends PHP_TokenWithScopeAndVisibility
in package
A PHP token.
Table of Contents
- $arguments : array<string|int, mixed>
- $ccn : int
- $endTokenId : int
- $id : int
- $line : int
- $name : string
- $signature : string
- $text : string
- $tokenStream : PHP_Token_Stream
- __construct() : mixed
- Constructor.
- __toString() : string
- getArguments() : array<string|int, mixed>
- getCCN() : int
- getDocblock() : string|null
- Get the docblock for this token
- getEndLine() : int
- getEndTokenId() : int
- getKeywords() : string
- getLine() : int
- getName() : string
- getSignature() : string
- getVisibility() : string
Properties
$arguments
protected
array<string|int, mixed>
$arguments
$ccn
protected
int
$ccn
$endTokenId
protected
int
$endTokenId
$id
protected
int
$id
$line
protected
int
$line
$name
protected
string
$name
$signature
protected
string
$signature
$text
protected
string
$text
$tokenStream
protected
PHP_Token_Stream
$tokenStream
Methods
__construct()
Constructor.
public
__construct(string $text, int $line, PHP_Token_Stream $tokenStream, int $id) : mixed
Parameters
- $text : string
- $line : int
- $tokenStream : PHP_Token_Stream
- $id : int
Return values
mixed —__toString()
public
__toString() : string
Return values
string —getArguments()
public
getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCCN()
public
getCCN() : int
Return values
int —getDocblock()
Get the docblock for this token
public
getDocblock() : string|null
This method will fetch the docblock belonging to the current token. The docblock must be placed on the line directly above the token to be recognized.
Return values
string|null —Returns the docblock as a string if found
getEndLine()
public
getEndLine() : int
Return values
int —getEndTokenId()
public
getEndTokenId() : int
Return values
int —getKeywords()
public
getKeywords() : string
Return values
string —getLine()
public
getLine() : int
Return values
int —getName()
public
getName() : string
Return values
string —getSignature()
public
getSignature() : string
Return values
string —getVisibility()
public
getVisibility() : string