diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-06-16 01:10:37 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-06-16 01:10:37 +0300 |
commit | 655e07391436f1445461db6a02be4efbc34fa35d (patch) | |
tree | 06cfe3239cc8cbb34948cc72a824d82e1eaa1cea /src/Exceptions | |
parent | 846d7c3417d4b1c748193163f038a2619ce62c93 (diff) | |
download | sql-parser-655e07391436f1445461db6a02be4efbc34fa35d.zip sql-parser-655e07391436f1445461db6a02be4efbc34fa35d.tar.gz sql-parser-655e07391436f1445461db6a02be4efbc34fa35d.tar.bz2 |
Improved documentation and coding style.
Diffstat (limited to 'src/Exceptions')
-rw-r--r-- | src/Exceptions/LexerException.php | 12 | ||||
-rw-r--r-- | src/Exceptions/ParserException.php | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/Exceptions/LexerException.php b/src/Exceptions/LexerException.php index f346d83..306c8b9 100644 --- a/src/Exceptions/LexerException.php +++ b/src/Exceptions/LexerException.php @@ -27,14 +27,14 @@ class LexerException extends \Exception /** * Constructor. * - * @param string $message - * @param string $ch - * @param int $positiion - * @param int $code + * @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($message = '', $ch = '', $pos = 0, $code = 0) + public function __construct($msg = '', $ch = '', $pos = 0, $code = 0) { - parent::__construct($message, $code); + parent::__construct($msg, $code); $this->ch = $ch; $this->pos = $pos; } diff --git a/src/Exceptions/ParserException.php b/src/Exceptions/ParserException.php index e23d03d..7332674 100644 --- a/src/Exceptions/ParserException.php +++ b/src/Exceptions/ParserException.php @@ -20,13 +20,13 @@ class ParserException extends \Exception /** * Constructor. * - * @param string $message - * @param Token $token - * @param int $code + * @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($message = '', Token $token = null, $code = 0) + public function __construct($msg = '', Token $token = null, $code = 0) { - parent::__construct($message, $code); + parent::__construct($msg, $code); $this->token = $token; } } |