1 | <?php |
||
11 | class Settings |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var Gateway |
||
16 | */ |
||
17 | private $gateway; |
||
18 | |||
19 | /** |
||
20 | * @param Gateway $gateway |
||
21 | */ |
||
22 | 4 | public function __construct(Gateway $gateway) |
|
26 | |||
27 | /** |
||
28 | * @param int $userId |
||
29 | * @param string $setting |
||
30 | * @return string |
||
31 | */ |
||
32 | 2 | public function get(int $userId, string $setting) |
|
42 | |||
43 | /** |
||
44 | * @param int $userId |
||
45 | * @return string[] |
||
46 | */ |
||
47 | 1 | public function getAll(int $userId) : array |
|
57 | |||
58 | /** |
||
59 | * @param int $userId |
||
60 | * @param string $setting |
||
61 | * @param string $value |
||
62 | */ |
||
63 | 1 | public function set(int $userId, string $setting, $value) |
|
67 | } |
||
68 |