Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 41 | public function setContextualString($contextualString) |
|
33 | { |
||
34 | 41 | if (!is_string($contextualString)) { |
|
35 | 15 | throw new \InvalidArgumentException('The context information string must be of type string.'); |
|
36 | } |
||
37 | |||
38 | 26 | $this->contextualString = $contextualString; |
|
39 | |||
40 | 26 | return $this; |
|
41 | } |
||
53 |