PHP Class SqlParser\Components\RenameOperation

Inheritance: extends SqlParser\Component
Show file Open project: phpmyadmin/sql-parser Class Usage Examples

Public Properties

Property Type Description
$new Expression The new table name.
$old Expression The old table name.

Public Methods

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

Method Details

build() public static method

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

Property Details

$new public property

The new table name.
public Expression,SqlParser\Components $new
return Expression

$old public property

The old table name.
public Expression,SqlParser\Components $old
return Expression