summaryrefslogtreecommitdiffstats
path: root/src/Parser.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-06-16 01:10:37 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-06-16 01:10:37 +0300
commit655e07391436f1445461db6a02be4efbc34fa35d (patch)
tree06cfe3239cc8cbb34948cc72a824d82e1eaa1cea /src/Parser.php
parent846d7c3417d4b1c748193163f038a2619ce62c93 (diff)
downloadsql-parser-655e07391436f1445461db6a02be4efbc34fa35d.zip
sql-parser-655e07391436f1445461db6a02be4efbc34fa35d.tar.gz
sql-parser-655e07391436f1445461db6a02be4efbc34fa35d.tar.bz2
Improved documentation and coding style.
Diffstat (limited to 'src/Parser.php')
-rw-r--r--src/Parser.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Parser.php b/src/Parser.php
index 167e912..059faa5 100644
--- a/src/Parser.php
+++ b/src/Parser.php
@@ -119,8 +119,8 @@ class Parser
/**
* Constructor.
*
- * @param mixed $list
- * @param bool $strict
+ * @param mixed $list The list of tokens to be parsed.
+ * @param bool $strict Whether strict mode should be enabled or not.
*/
public function __construct($list = null, $strict = false)
{
@@ -181,9 +181,9 @@ class Parser
/**
* Creates a new error log.
*
- * @param string $str
- * @param Token $token
- * @param int $code
+ * @param string $msg The error message.
+ * @param Token $token The token that produced the error.
+ * @param int $code The code of the error.
*/
public function error($str = '', Token $token = null, $code = 0)
{