1 | <?php |
||
14 | class ThreemaGateway_Handler_DbKeystore extends Threema\MsgApi\PublicKeyStore |
||
15 | { |
||
16 | /** |
||
17 | * @var ThreemaGateway_Model_Keystore Model to keystore |
||
18 | */ |
||
19 | private $model; |
||
20 | |||
21 | /** |
||
22 | * @var ThreemaGateway_DataWriter_Keystore DataWriter of keystore |
||
23 | */ |
||
24 | private $dataWriter; |
||
25 | |||
26 | /** |
||
27 | * Initialises the key store. |
||
28 | * |
||
29 | * @return PhpFile |
||
|
|||
30 | */ |
||
31 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * Find public key. Returns null if the public key not found in the store. |
||
39 | * |
||
40 | * @param string $threemaId |
||
41 | * @return null|string |
||
42 | */ |
||
43 | public function findPublicKey($threemaId) |
||
47 | |||
48 | /** |
||
49 | * Save a public key. |
||
50 | * |
||
51 | * @param string $threemaId |
||
52 | * @param string $publicKey |
||
53 | * @return bool |
||
54 | */ |
||
55 | public function savePublicKey($threemaId, $publicKey) |
||
61 | |||
62 | /** |
||
63 | * Ignores requests to create method. |
||
64 | * |
||
65 | * @param string $path |
||
66 | */ |
||
67 | public static function create($path) |
||
71 | } |
||
72 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.