1 | <?php |
||
13 | class DataCachers |
||
14 | { |
||
15 | /** |
||
16 | * @var DataCacher[] |
||
17 | */ |
||
18 | protected $dataCachers; |
||
19 | |||
20 | 3 | public function __construct() |
|
24 | |||
25 | /** |
||
26 | * @param string $cacherName |
||
27 | * @param DataCacher $dataCacher |
||
28 | * |
||
29 | * @return $this |
||
30 | */ |
||
31 | 1 | public function addCacher(string $cacherName, DataCacher $dataCacher) : self |
|
37 | |||
38 | /** |
||
39 | * @param string $cacherName |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | 3 | public function hasCacher(string $cacherName) : bool |
|
47 | |||
48 | /** |
||
49 | * @param string $cacherName |
||
50 | * |
||
51 | * @return DataCacher |
||
52 | */ |
||
53 | 2 | public function getCacher(string $cacherName) : DataCacher |
|
61 | |||
62 | /** |
||
63 | * @param string $cacherName |
||
64 | * |
||
65 | * @return $this |
||
66 | */ |
||
67 | 1 | public function removeCacher(string $cacherName) : self |
|
73 | |||
74 | /** |
||
75 | * @return DataCacher[] |
||
76 | */ |
||
77 | 1 | public function getCachers() |
|
81 | |||
82 | /** |
||
83 | * @param DataCacher[] $dataCachers |
||
84 | * |
||
85 | * @return $this |
||
86 | */ |
||
87 | 1 | public function setCachers($dataCachers) |
|
93 | } |
||
94 |