diff options
Diffstat (limited to 'src/Fragment.php')
-rw-r--r-- | src/Fragment.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/Fragment.php b/src/Fragment.php index 63af280..51cec95 100644 --- a/src/Fragment.php +++ b/src/Fragment.php @@ -5,18 +5,26 @@ namespace SqlParser; /** * A fragment (of a statement) is a part of a statement that is common to * multiple query types. + * + * @category Fragments + * @package SqlParser + * @author Dan Ungureanu <udan1107@gmail.com> + * @license http://opensource.org/licenses/GPL-2.0 GNU Public License */ abstract class Fragment { /** - * Parses the tokens given by the lexer in the context of the given parser. + * Parses the tokens contained in the given list in the context of the given + * parser. * - * @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 array + * @return mixed */ - abstract public static function parse(Parser $parser, TokensList $list, array $options = array()); + abstract public static function parse(Parser $parser, TokensList $list, + array $options = array() + ); } |