Rules
2 months ago
DocumentValidator.php
2 months ago
QueryValidationContext.php
2 months ago
SDLValidationContext.php
2 months ago
ValidationContext.php
2 months ago
ValidationContext.php
20 lines
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Vendor\GraphQL\Validator; |
| 4 | |
| 5 | use Automattic\WooCommerce\Vendor\GraphQL\Error\Error; |
| 6 | use Automattic\WooCommerce\Vendor\GraphQL\Language\AST\DocumentNode; |
| 7 | use Automattic\WooCommerce\Vendor\GraphQL\Type\Schema; |
| 8 | |
| 9 | interface ValidationContext |
| 10 | { |
| 11 | public function reportError(Error $error): void; |
| 12 | |
| 13 | /** @return list<Error> */ |
| 14 | public function getErrors(): array; |
| 15 | |
| 16 | public function getDocument(): DocumentNode; |
| 17 | |
| 18 | public function getSchema(): ?Schema; |
| 19 | } |
| 20 |