Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Liker extends Author |
||
6 | { |
||
7 | /** |
||
8 | * Get like sign. |
||
9 | * "1" means that user liked entity, "-1" - disliked. |
||
10 | * |
||
11 | * @return int |
||
12 | */ |
||
13 | public function getSign() |
||
14 | { |
||
15 | return intval($this->getData('sign')); |
||
16 | } |
||
17 | |||
18 | /** |
||
19 | * Determines whether the user liked entity. |
||
20 | * |
||
21 | * @return bool |
||
22 | */ |
||
23 | public function liked() |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Determines whether the user disliked entity. |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | public function disliked() |
||
36 | } |
||
37 | } |
||
38 |