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