Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function convert(): string |
||
31 | { |
||
32 | $result = "<?php\n\ndeclare(strict_types=1);\n\n"; |
||
33 | // the use block |
||
34 | foreach (self::USE_LIST as $use) { |
||
35 | $result .= "use {$use};\n"; |
||
36 | } |
||
37 | $renderedArray = (new SchemaRenderer($this->schema))->render(); |
||
38 | $result .= "\nreturn {$renderedArray};\n"; |
||
39 | return $result; |
||
40 | } |
||
42 |