| Total Complexity | 6 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class SchemaToArrayConverter |
||
| 13 | { |
||
| 14 | /** @var array<string, int> */ |
||
| 15 | private array $constants; |
||
| 16 | |||
| 17 | public function __construct(?ConstantsInterface $constants = null) |
||
| 18 | { |
||
| 19 | $this->constants = ($constants ?? new SchemaConstants())->all(); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param SchemaInterface $schema |
||
| 24 | * @param array<int, int> $customProperties |
||
| 25 | * |
||
| 26 | * @return array<string, array<int, mixed>> |
||
| 27 | */ |
||
| 28 | public function convert(SchemaInterface $schema, array $customProperties = []): array |
||
| 51 | } |
||
| 52 | } |
||
| 53 |