File manager - Edit - /home/opticamezl/www/newok/templates/yootheme/packages/graphql/lib/Validator/Rules/ValidationRule.php
Back
<?php declare(strict_types=1); namespace YOOtheme\GraphQL\Validator\Rules; use YOOtheme\GraphQL\Language\Visitor; use YOOtheme\GraphQL\Validator\QueryValidationContext; use YOOtheme\GraphQL\Validator\SDLValidationContext; /** * @phpstan-import-type VisitorArray from Visitor */ abstract class ValidationRule { protected string $name; public function getName(): string { return $this->name ?? static::class; } /** * Returns structure suitable for @see \GraphQL\Language\Visitor. * * @phpstan-return VisitorArray */ public function getVisitor(QueryValidationContext $context): array { return []; } /** * Returns structure suitable for @see \GraphQL\Language\Visitor. * * @phpstan-return VisitorArray */ public function getSDLVisitor(SDLValidationContext $context): array { return []; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings