| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 57 | 11 | public function __construct(string $name, bool $nullable = false) |
|
| 58 | { |
||
| 59 | 11 | $this->naming = $name; |
|
| 60 | |||
| 61 | // Force nullable for native type name |
||
| 62 | 11 | switch (\strtolower($name)) { |
|
| 63 | 11 | case 'mixed': |
|
| 64 | 10 | case 'null': |
|
| 65 | 2 | $this->nullable = true; |
|
| 66 | 2 | break; |
|
| 67 | default: |
||
| 68 | 9 | $this->nullable = $nullable; |
|
| 69 | 9 | break; |
|
| 70 | } |
||
| 113 |