Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class TrackedMemory implements MemoryInterface |
||
11 | { |
||
12 | /** @var int */ |
||
13 | public $saveCount = 0; |
||
14 | /** @var Memory */ |
||
15 | private $memory; |
||
16 | |||
17 | public function __construct(Memory $memory) |
||
18 | { |
||
19 | $this->memory = $memory; |
||
20 | } |
||
21 | |||
22 | public function loadData(string $section) |
||
23 | { |
||
24 | return $this->memory->loadData($section); |
||
25 | } |
||
26 | |||
27 | public function saveData(string $section, $data): void |
||
31 | } |
||
32 | } |
||
33 |