| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class SchemaToPHP |
||
| 13 | { |
||
| 14 | private SchemaInterface $schema; |
||
| 15 | private const USE_LIST = [ |
||
| 16 | SchemaInterface::class . ' as Schema', |
||
| 17 | Relation::class, |
||
| 18 | RelationSchema::class, |
||
| 19 | ]; |
||
| 20 | |||
| 21 | 3 | public function __construct(SchemaInterface $schema) |
|
| 22 | { |
||
| 23 | 3 | $this->schema = $schema; |
|
| 24 | 3 | } |
|
| 25 | |||
| 26 | public function __toString(): string |
||
| 29 | } |
||
| 30 | |||
| 31 | 3 | public function convert(): string |
|
| 43 |