| Total Complexity | 4 | 
| Total Lines | 43 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 8 | class ValidationContext implements ValidationContextInterface  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * @var SchemaInterface  | 
            ||
| 12 | */  | 
            ||
| 13 | protected $schema;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * @var ValidationException[]  | 
            ||
| 17 | */  | 
            ||
| 18 | protected $errors = [];  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * SchemaValidationContext constructor.  | 
            ||
| 22 | * @param SchemaInterface $schema  | 
            ||
| 23 | */  | 
            ||
| 24 | public function __construct(SchemaInterface $schema)  | 
            ||
| 25 |     { | 
            ||
| 26 | $this->schema = $schema;  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * @inheritdoc  | 
            ||
| 31 | */  | 
            ||
| 32 | public function reportError(ValidationException $error)  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * @inheritdoc  | 
            ||
| 39 | */  | 
            ||
| 40 | public function getErrors(): array  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * @inheritdoc  | 
            ||
| 47 | */  | 
            ||
| 48 | public function getSchema(): SchemaInterface  | 
            ||
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 |