Conditions | 3 |
Paths | 3 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
27 | public function getStateDescription(string $providerName): string |
||
28 | { |
||
29 | if (isset($this->injectors[$providerName])) { |
||
30 | /** @var InjectorStateDTO $injector */ |
||
31 | $injector = $this->injectors[$providerName][0]; |
||
32 | $given = 'Create ' |
||
33 | . $injector->getEntityName() |
||
34 | . $injector->getEntityDescription() |
||
35 | . ':' |
||
36 | . \json_encode($injector->getParameters()); |
||
37 | |||
38 | return $given; |
||
39 | } |
||
40 | |||
41 | if (isset($this->plainTextState[$providerName])) { |
||
42 | $given = $this->plainTextState [$providerName]; |
||
43 | |||
44 | return $given; |
||
45 | } |
||
46 | |||
47 | return $this->defaultPlainTextState; |
||
48 | } |
||
49 | |||
75 |