1 | <?php |
||
20 | final class DummyAdapter implements StorageInterface |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @var mixed[] Array of all the values (transient) |
||
25 | */ |
||
26 | protected $data = array(); |
||
27 | |||
28 | /** |
||
29 | * Loads circuit breaker service status value. |
||
30 | * |
||
31 | * @param string $serviceName name of service to load stats for |
||
32 | * @param string $attributeName name of attribute to load |
||
33 | * |
||
34 | * @return string value stored or '' if value was not found |
||
35 | */ |
||
36 | 13 | public function loadStatus($serviceName, $attributeName) |
|
44 | |||
45 | /** |
||
46 | * Saves circuit breaker service status value. |
||
47 | * |
||
48 | * @param string $serviceName name of service to load stats for |
||
49 | * @param string $attributeName name of the attribute to load |
||
50 | * @param string $value string value loaded or '' if nothing found |
||
51 | * @param boolean $flush set to true will force immediate save, false does not guaranteed saving at all. |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | 11 | public function saveStatus($serviceName, $attributeName, $value, $flush = false) |
|
59 | |||
60 | } |