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