Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class Block |
||
13 | { |
||
14 | /** @var string */ |
||
15 | private $id; |
||
16 | /** @var bool */ |
||
17 | private $shouldRefresh = false; |
||
18 | |||
19 | public function __construct(string $id) |
||
20 | { |
||
21 | $this->id = $id; |
||
22 | } |
||
23 | |||
24 | public function getId(): string |
||
25 | { |
||
26 | return $this->id; |
||
27 | } |
||
28 | |||
29 | public function refresh(): Block |
||
30 | { |
||
31 | $this->shouldRefresh = true; |
||
32 | |||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | public function shouldRefresh(): bool |
||
39 | } |
||
40 | } |
||
41 |