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