| Total Complexity | 2 | 
| Total Lines | 24 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 24 | trait VerificationAlgorithmInjectableTrait | ||
| 25 | { | ||
| 26 | /** | ||
| 27 | * Setter for the message digestion and verification service. | ||
| 28 | * | ||
| 29 | * @param HashFunction|VerificationAlgorithm $hasher The message digestion verification service or null. | ||
| 30 | * | ||
| 31 | * @return $this The container object. | ||
| 32 | */ | ||
| 33 | public function setVerificationAlgorithm(VerificationAlgorithm $hasher) | ||
| 34 |     { | ||
| 35 | $this->verificationSource = $hasher; | ||
| 36 | |||
| 37 | return $this; | ||
| 38 | } | ||
| 39 | |||
| 40 | /** | ||
| 41 | * Getter for the message digestion and verification service. | ||
| 42 | * | ||
| 43 | * @return HashFunction|VerificationAlgorithm|null The currently injected message digestion service or null. | ||
| 44 | */ | ||
| 45 | public function getVerificationAlgorithm() | ||
| 48 | } | ||
| 49 | } | ||
| 50 |