diff options
Diffstat (limited to 'src/Fragments/WhereKeyword.php')
-rw-r--r-- | src/Fragments/WhereKeyword.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/Fragments/WhereKeyword.php b/src/Fragments/WhereKeyword.php index c9ce460..0bc60a7 100644 --- a/src/Fragments/WhereKeyword.php +++ b/src/Fragments/WhereKeyword.php @@ -3,13 +3,18 @@ namespace SqlParser\Fragments; use SqlParser\Fragment; -use SqlParser\Lexer; use SqlParser\Parser; use SqlParser\Token; use SqlParser\TokensList; /** * `WHERE` keyword parser. + * + * @category Keywords + * @package SqlParser + * @subpackage Fragments + * @author Dan Ungureanu <udan1107@gmail.com> + * @license http://opensource.org/licenses/GPL-2.0 GNU Public License */ class WhereKeyword extends Fragment { @@ -19,7 +24,7 @@ class WhereKeyword extends Fragment * * @var array */ - private static $OPERATORS = array('&&', '(', ')', 'AND', 'OR', 'XOR', '||'); + public static $OPERATORS = array('&&', '(', ')', 'AND', 'OR', 'XOR', '||'); /** * Whether this fragment is an operator. @@ -36,9 +41,9 @@ class WhereKeyword extends Fragment public $condition; /** - * @param Parser $parser The parser that serves as context. - * @param TokensList $list The list of tokens that are being parsed. - * @param array $options Parameters for parsing. + * @param Parser $parser The parser that serves as context. + * @param TokensList $list The list of tokens that are being parsed. + * @param array $options Parameters for parsing. * * @return WhereKeyword[] */ @@ -49,7 +54,11 @@ class WhereKeyword extends Fragment $expr = new WhereKeyword(); for (; $list->idx < $list->count; ++$list->idx) { - /** @var Token Token parsed at this moment. */ + + /** + * Token parsed at this moment. + * @var Token + */ $token = $list->tokens[$list->idx]; // End of statement. |