Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | trait AlgorithmicCostTrait |
||
23 | { |
||
24 | /** |
||
25 | * Setter for the computational cost property. |
||
26 | * |
||
27 | * @param int $cost The algorithmic cost. |
||
28 | * |
||
29 | * @return $this The hash algorithm object. |
||
30 | * @throws \Exception Validation errors. |
||
31 | */ |
||
32 | 32 | public function setAlgorithmicCost($cost) |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * Getter for the computational cost property. |
||
58 | * |
||
59 | * @return int The algorithmic cost. |
||
60 | */ |
||
61 | 2 | public function getAlgorithmicCost() |
|
66 |