PHP Class SqlParser\Components\FunctionCall

Author: Dan Ungureanu ([email protected])
Inheritance: extends SqlParser\Component
Mostrar archivo Open project: phpmyadmin/sql-parser Class Usage Examples

Public Properties

Property Type Description
$name string The name of this function.
$parameters ArrayObj The list of parameters

Public Methods

Method Description
__construct ( string $name = null, array | ArrayObj $parameters = null ) Constructor.
build ( FunctionCall $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : FunctionCall

Method Details

__construct() public method

Constructor.
public __construct ( string $name = null, array | ArrayObj $parameters = null )
$name string The name of the function to be called.
$parameters array | ArrayObj The parameters of this function.

build() public static method

public static build ( FunctionCall $component, array $options = [] ) : string
$component FunctionCall The component to be built.
$options array Parameters for building.
return string

parse() public static method

public static parse ( Parser $parser, TokensList $list, array $options = [] ) : FunctionCall
$parser SqlParser\Parser The parser that serves as context.
$list SqlParser\TokensList The list of tokens that are being parsed.
$options array Parameters for parsing.
return FunctionCall

Property Details

$name public_oe property

The name of this function.
public string $name
return string

$parameters public_oe property

The list of parameters
public ArrayObj,SqlParser\Components $parameters
return ArrayObj