Conditions | 4 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
37 | 7 | public function describe() : string |
|
38 | { |
||
39 | if ( |
||
40 | 7 | $this->keyType instanceof MixedType |
|
41 | 5 | || $this->keyType->describe() === 'int|string' |
|
42 | 7 | || $this->keyType->describe() === 'string|int' |
|
43 | ) { |
||
44 | 4 | return sprintf('array<%s>', $this->valueType->describe()); |
|
45 | } |
||
46 | |||
47 | 3 | return sprintf('array<%s, %s>', $this->keyType->describe(), $this->valueType->describe()); |
|
48 | } |
||
72 |