| 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 setDerivationSalt($derivationSalt) |
||
| 33 | { |
||
| 34 | if (!is_string($derivationSalt)) { |
||
|
1 ignored issue
–
show
|
|||
| 35 | throw new \InvalidArgumentException('The derivation salt must be of type string.'); |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->derivationSalt = $derivationSalt; |
||
| 39 | |||
| 40 | return $this; |
||
| 41 | } |
||
| 53 |