Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class SchemaToPHP |
||
14 | { |
||
15 | private SchemaInterface $schema; |
||
16 | private const USE_LIST = [ |
||
17 | Schema::class, |
||
18 | Relation::class, |
||
19 | RelationSchema::class, |
||
20 | ]; |
||
21 | |||
22 | 2 | public function __construct(SchemaInterface $schema) |
|
25 | 2 | } |
|
26 | public function __toString(): string |
||
27 | { |
||
28 | return $this->convert(); |
||
29 | } |
||
30 | 2 | public function convert(): string |
|
40 | } |
||
41 | } |
||
42 |