diff options
Diffstat (limited to 'src/Component.php')
-rw-r--r-- | src/Component.php | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/Component.php b/src/Component.php index bb230c2..656d318 100644 --- a/src/Component.php +++ b/src/Component.php @@ -1,5 +1,4 @@ <?php - /** * Defines a component that is later extended to parse specialized components or * keywords. @@ -8,16 +7,15 @@ * *Component parsers can be reused in multiple situations and *Keyword parsers * count on the *Component classes to do their job. */ +declare(strict_types=1); namespace PhpMyAdmin\SqlParser; +use Exception; + /** * A component (of a statement) is a part of a statement that is common to * multiple query types. - * - * @category Components - * - * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ abstract class Component { @@ -29,18 +27,18 @@ abstract class Component * @param TokensList $list the list of tokens that are being parsed * @param array $options parameters for parsing * - * @throws \Exception not implemented yet - * * @return mixed + * + * @throws Exception not implemented yet. */ public static function parse( Parser $parser, TokensList $list, - array $options = array() + array $options = [] ) { // This method should be abstract, but it can't be both static and // abstract. - throw new \Exception(Translator::gettext('Not implemented yet.')); + throw new Exception(Translator::gettext('Not implemented yet.')); } /** @@ -52,15 +50,15 @@ abstract class Component * @param mixed $component the component to be built * @param array $options parameters for building * - * @throws \Exception not implemented yet + * @return mixed * - * @return string + * @throws Exception not implemented yet. */ - public static function build($component, array $options = array()) + public static function build($component, array $options = []) { // This method should be abstract, but it can't be both static and // abstract. - throw new \Exception(Translator::gettext('Not implemented yet.')); + throw new Exception(Translator::gettext('Not implemented yet.')); } /** |