diff options
Diffstat (limited to 'vendor/doctrine/dbal/src/SQL/Parser')
3 files changed, 58 insertions, 0 deletions
diff --git a/vendor/doctrine/dbal/src/SQL/Parser/Exception.php b/vendor/doctrine/dbal/src/SQL/Parser/Exception.php new file mode 100644 index 0000000..0c14b35 --- /dev/null +++ b/vendor/doctrine/dbal/src/SQL/Parser/Exception.php | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\SQL\Parser; | ||
| 6 | |||
| 7 | use Throwable; | ||
| 8 | |||
| 9 | interface Exception extends Throwable | ||
| 10 | { | ||
| 11 | } | ||
diff --git a/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php b/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php new file mode 100644 index 0000000..81ae215 --- /dev/null +++ b/vendor/doctrine/dbal/src/SQL/Parser/Exception/RegularExpressionError.php | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\SQL\Parser\Exception; | ||
| 6 | |||
| 7 | use Doctrine\DBAL\SQL\Parser\Exception; | ||
| 8 | use RuntimeException; | ||
| 9 | |||
| 10 | use function preg_last_error; | ||
| 11 | use function preg_last_error_msg; | ||
| 12 | |||
| 13 | class RegularExpressionError extends RuntimeException implements Exception | ||
| 14 | { | ||
| 15 | public static function new(): self | ||
| 16 | { | ||
| 17 | return new self(preg_last_error_msg(), preg_last_error()); | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/vendor/doctrine/dbal/src/SQL/Parser/Visitor.php b/vendor/doctrine/dbal/src/SQL/Parser/Visitor.php new file mode 100644 index 0000000..c0b9e92 --- /dev/null +++ b/vendor/doctrine/dbal/src/SQL/Parser/Visitor.php | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\DBAL\SQL\Parser; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * SQL parser visitor | ||
| 9 | * | ||
| 10 | * @internal | ||
| 11 | */ | ||
| 12 | interface Visitor | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * Accepts an SQL fragment containing a positional parameter | ||
| 16 | */ | ||
| 17 | public function acceptPositionalParameter(string $sql): void; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * Accepts an SQL fragment containing a named parameter | ||
| 21 | */ | ||
| 22 | public function acceptNamedParameter(string $sql): void; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Accepts other SQL fragments | ||
| 26 | */ | ||
| 27 | public function acceptOther(string $sql): void; | ||
| 28 | } | ||
