Conditions | 2 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
38 | 3 | public function describe() : string |
|
39 | { |
||
40 | 3 | return implode( |
|
41 | 3 | '&', |
|
42 | 3 | array_map( |
|
43 | static function (Type $subType) : string { |
||
44 | 3 | if ($subType instanceof CompositeType) { |
|
45 | 1 | return sprintf('(%s)', $subType->describe()); |
|
46 | } |
||
47 | |||
48 | 3 | return $subType->describe(); |
|
49 | 3 | }, |
|
50 | 3 | $this->subTypes |
|
51 | ) |
||
71 |