PHP Class SqlParser\Components\Limit

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

Public Properties

Property Type Description
$offset integer The number of rows skipped.
$rowCount integer The number of rows to be returned.

Public Methods

Method Description
__construct ( integer $rowCount, integer $offset ) Constructor.
build ( Limit $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : Limit

Method Details

__construct() public method

Constructor.
public __construct ( integer $rowCount, integer $offset )
$rowCount integer The row count.
$offset integer The offset.

build() public static method

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

Property Details

$offset public_oe property

The number of rows skipped.
public int $offset
return integer

$rowCount public_oe property

The number of rows to be returned.
public int $rowCount
return integer