| Total Complexity | 3 | 
| Total Lines | 22 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 11 | abstract class ValidationRule | ||
| 12 | { | ||
| 13 | /** @var string */ | ||
| 14 | protected $name; | ||
| 15 | |||
| 16 | public function getName() | ||
| 17 |     { | ||
| 18 | return $this->name ?: get_class($this); | ||
| 19 | } | ||
| 20 | |||
| 21 | public function __invoke(ValidationContext $context) | ||
| 24 | } | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Returns structure suitable for GraphQL\Language\Visitor | ||
| 28 | * | ||
| 29 | * @see \GraphQL\Language\Visitor | ||
| 30 | * @return mixed[] | ||
| 31 | */ | ||
| 32 | abstract public function getVisitor(ValidationContext $context); | ||
| 33 | } | ||
| 36 |