diff options
Diffstat (limited to 'src/Statements/SetStatement.php')
-rw-r--r-- | src/Statements/SetStatement.php | 56 |
1 files changed, 26 insertions, 30 deletions
diff --git a/src/Statements/SetStatement.php b/src/Statements/SetStatement.php index d62b6f0..80a1dc7 100644 --- a/src/Statements/SetStatement.php +++ b/src/Statements/SetStatement.php @@ -1,8 +1,8 @@ <?php - /** * `SET` statement. */ +declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Statements; @@ -12,10 +12,6 @@ use PhpMyAdmin\SqlParser\Statement; /** * `SET` statement. - * - * @category Statements - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class SetStatement extends Statement { @@ -26,39 +22,39 @@ class SetStatement extends Statement * * @var array */ - public static $CLAUSES = array( - 'SET' => array( + public static $CLAUSES = [ + 'SET' => [ 'SET', - 3 - ), - '_END_OPTIONS' => array( + 3, + ], + '_END_OPTIONS' => [ '_END_OPTIONS', - 1 - ) - ); + 1, + ], + ]; /** * Possible exceptions in SET statment. * * @var array */ - public static $OPTIONS = array( - 'CHARSET' => array( + public static $OPTIONS = [ + 'CHARSET' => [ 3, 'var', - ), - 'CHARACTER SET' => array( + ], + 'CHARACTER SET' => [ 3, 'var', - ), - 'NAMES' => array( + ], + 'NAMES' => [ 3, 'var', - ), - 'PASSWORD' => array( + ], + 'PASSWORD' => [ 3, 'expr', - ), + ], 'SESSION' => 3, 'GLOBAL' => 3, 'PERSIST' => 3, @@ -67,15 +63,15 @@ class SetStatement extends Statement '@@GLOBAL' => 3, '@@PERSIST' => 3, '@@PERSIST_ONLY' => 3, - ); + ]; - public static $END_OPTIONS = array( - 'COLLATE' => array( + public static $END_OPTIONS = [ + 'COLLATE' => [ 1, 'var', - ), - 'DEFAULT' => 1 - ); + ], + 'DEFAULT' => 1, + ]; /** * Options used in current statement. @@ -87,9 +83,9 @@ class SetStatement extends Statement /** * The end options of this query. * - * @var OptionsArray - * * @see static::$END_OPTIONS + * + * @var OptionsArray */ public $end_options; |