| Total Complexity | 9 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class LoneSchemaDefinition extends ValidationRule |
||
| 18 | { |
||
| 19 | 1 | public static function schemaDefinitionNotAloneMessage() |
|
| 20 | { |
||
| 21 | 1 | return 'Must provide only one schema definition.'; |
|
| 22 | } |
||
| 23 | |||
| 24 | 2 | public static function canNotDefineSchemaWithinExtensionMessage() |
|
| 25 | { |
||
| 26 | 2 | return 'Cannot define a new schema within a schema extension.'; |
|
| 27 | } |
||
| 28 | |||
| 29 | 210 | public function getSDLVisitor(SDLValidationContext $context) |
|
| 56 | 210 | }, |
|
| 57 | ]; |
||
| 58 | } |
||
| 60 |