Total Complexity | 11 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class Interaction |
||
7 | { |
||
8 | private $follow; |
||
9 | private $applause; |
||
10 | private $done; |
||
11 | private $pageId; |
||
12 | private $doneValue; |
||
13 | |||
14 | public function __construct( |
||
15 | int $pageId, |
||
16 | bool $follow, |
||
17 | bool $applause, |
||
18 | bool $done, |
||
19 | array $doneValue = [] |
||
20 | ) |
||
21 | { |
||
22 | $this->pageId = $pageId; |
||
23 | $this->done = $done; |
||
24 | $this->follow = $follow; |
||
25 | $this->applause = $applause; |
||
26 | $this->doneValue = $doneValue; |
||
27 | } |
||
28 | |||
29 | public function pageId():int |
||
30 | { |
||
31 | return $this->pageId; |
||
32 | } |
||
33 | |||
34 | public function update(array $interactions, array $doneValue = []) |
||
58 | } |
||
59 | } |
||
60 | } |
||
61 | |||
62 | public function toArray():array |
||
73 |