Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait ActivityTrait |
||
6 | { |
||
7 | abstract protected function activityId(); |
||
8 | |||
9 | /** |
||
10 | * @return string |
||
11 | */ |
||
12 | 6 | public function activityObject() |
|
13 | { |
||
14 | 6 | return (static::class) .':'. $this->activityId(); |
|
15 | } |
||
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | 5 | public function activityForeignId() |
|
21 | { |
||
22 | 5 | return $this->activityObject(); |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return array |
||
27 | */ |
||
28 | 3 | public function activityNotify() |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return array |
||
35 | */ |
||
36 | 3 | public function activityExtraData() |
|
41 |