diff options
author | Michal Čihař <michal@cihar.com> | 2017-01-06 09:28:39 +0100 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-01-06 09:28:39 +0100 |
commit | 7c790bf6aa873dce9e872b92a77be4bb741e0321 (patch) | |
tree | d77d3f77366151de88db6d649d53fd9805bd6b3a /src/Exceptions | |
parent | e0c4f86cb7a34150f0941ddd22ff9d9da6c7fe15 (diff) | |
parent | f7d7348747e154c8276b0fba1ad6e1a70f92267d (diff) | |
download | sql-parser-7c790bf6aa873dce9e872b92a77be4bb741e0321.zip sql-parser-7c790bf6aa873dce9e872b92a77be4bb741e0321.tar.gz sql-parser-7c790bf6aa873dce9e872b92a77be4bb741e0321.tar.bz2 |
Merge branch 'master' into motranslator
Diffstat (limited to 'src/Exceptions')
-rw-r--r-- | src/Exceptions/LexerException.php | 16 | ||||
-rw-r--r-- | src/Exceptions/ParserException.php | 14 |
2 files changed, 11 insertions, 19 deletions
diff --git a/src/Exceptions/LexerException.php b/src/Exceptions/LexerException.php index 2dd3041..e60c332 100644 --- a/src/Exceptions/LexerException.php +++ b/src/Exceptions/LexerException.php @@ -2,23 +2,19 @@ /** * Exception thrown by the lexer. - * - * @package SqlParser - * @subpackage Exceptions */ + namespace SqlParser\Exceptions; /** * Exception thrown by the lexer. * * @category Exceptions - * @package SqlParser - * @subpackage Exceptions + * * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class LexerException extends \Exception { - /** * The character that produced this error. * @@ -36,10 +32,10 @@ class LexerException extends \Exception /** * Constructor. * - * @param string $msg The message of this exception. - * @param string $ch The character that produced this exception. - * @param int $pos The position of the character. - * @param int $code The code of this error. + * @param string $msg the message of this exception + * @param string $ch the character that produced this exception + * @param int $pos the position of the character + * @param int $code the code of this error */ public function __construct($msg = '', $ch = '', $pos = 0, $code = 0) { diff --git a/src/Exceptions/ParserException.php b/src/Exceptions/ParserException.php index 81f6259..07f30c7 100644 --- a/src/Exceptions/ParserException.php +++ b/src/Exceptions/ParserException.php @@ -2,10 +2,8 @@ /** * Exception thrown by the parser. - * - * @package SqlParser - * @subpackage Exceptions */ + namespace SqlParser\Exceptions; use SqlParser\Token; @@ -14,13 +12,11 @@ use SqlParser\Token; * Exception thrown by the parser. * * @category Exceptions - * @package SqlParser - * @subpackage Exceptions + * * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class ParserException extends \Exception { - /** * The token that produced this error. * @@ -31,9 +27,9 @@ class ParserException extends \Exception /** * Constructor. * - * @param string $msg The message of this exception. - * @param Token $token The token that produced this exception. - * @param int $code The code of this error. + * @param string $msg the message of this exception + * @param Token $token the token that produced this exception + * @param int $code the code of this error */ public function __construct($msg = '', Token $token = null, $code = 0) { |