diff options
Diffstat (limited to 'src/Components/Limit.php')
-rw-r--r-- | src/Components/Limit.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/Components/Limit.php b/src/Components/Limit.php index a3903b5..16dad29 100644 --- a/src/Components/Limit.php +++ b/src/Components/Limit.php @@ -1,8 +1,8 @@ <?php - /** * `LIMIT` keyword parser. */ +declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Components; @@ -13,10 +13,6 @@ use PhpMyAdmin\SqlParser\TokensList; /** * `LIMIT` keyword parser. - * - * @category Keywords - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class Limit extends Component { @@ -35,8 +31,6 @@ class Limit extends Component public $rowCount; /** - * Constructor. - * * @param int $rowCount the row count * @param int $offset the offset */ @@ -53,9 +47,9 @@ class Limit extends Component * * @return Limit */ - public static function parse(Parser $parser, TokensList $list, array $options = array()) + public static function parse(Parser $parser, TokensList $list, array $options = []) { - $ret = new self(); + $ret = new static(); $offset = false; @@ -126,7 +120,7 @@ class Limit extends Component * * @return string */ - public static function build($component, array $options = array()) + public static function build($component, array $options = []) { return $component->offset . ', ' . $component->rowCount; } |