| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | trait SymmetricEncryptionInjectableTrait |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Setter for the message symmetric encryption service. |
||
| 28 | * |
||
| 29 | * @param SymmetricBlockCipher|DataEncryption $cipher The message symmetric encryption service. |
||
| 30 | * |
||
| 31 | * @return $this The container object. |
||
| 32 | */ |
||
| 33 | public function setSymmetricCipher(SymmetricBlockCipher $cipher) |
||
| 34 | { |
||
| 35 | if ($cipher instanceof DataEncryption) { |
||
|
|
|||
| 36 | $this->symmetricCipherSource = $cipher; |
||
| 37 | } |
||
| 38 | |||
| 39 | return $this; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Getter for the message symmetric encryption service. |
||
| 44 | * |
||
| 45 | * @return SymmetricBlockCipher|DataEncryption|null The currently injected message encryption service or null. |
||
| 46 | */ |
||
| 47 | public function getSymmetricCipher() |
||
| 50 | } |
||
| 51 | } |
||
| 52 |