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