Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | trait HasCommentAtHelpers |
||
19 | { |
||
20 | public function initializeHasApprovedAtHelpers(): void |
||
21 | { |
||
22 | $this->dates[] = 'comment_at'; |
||
|
|||
23 | } |
||
24 | |||
25 | public function isComment(): bool |
||
26 | { |
||
27 | return !is_null($this->getAttributeValue('comment_at')); |
||
28 | } |
||
29 | |||
30 | public function isNotApproved(): bool |
||
33 | } |
||
34 | |||
35 | public function comment(): void |
||
41 | } |
||
42 | |||
43 | public function undoComment(): void |
||
51 |