PHP Class SqlParser\Components\JoinKeyword

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

Public Properties

Property Type Description
$JOINS array Types of join.
$expr Expression Join expression.
$on Condition[] Join conditions.
$type string Type of this join.
$using ArrayObj Columns in Using clause

Public Methods

Method Description
build ( JoinKeyword[] $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : JoinKeyword[]

Method Details

build() public static method

public static build ( JoinKeyword[] $component, array $options = [] ) : string
$component JoinKeyword[] 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 = [] ) : JoinKeyword[]
$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 JoinKeyword[]

Property Details

$JOINS public static property

Types of join.
public static array $JOINS
return array

$expr public property

Join expression.
public Expression,SqlParser\Components $expr
return Expression

$on public property

Join conditions.
public Condition[],SqlParser\Components $on
return Condition[]

$type public property

Type of this join.
See also: static::$JOINS
public string $type
return string

$using public property

Columns in Using clause
public ArrayObj,SqlParser\Components $using
return ArrayObj