1 | <?php |
||
22 | class Comment extends Node |
||
|
|||
23 | { |
||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $guarded = ['id', 'created_at', 'updated_at']; |
||
28 | |||
29 | /** |
||
30 | * @return bool |
||
31 | */ |
||
32 | public function hasChildren() |
||
36 | |||
37 | /** |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function commentable() |
||
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function creator() |
||
52 | |||
53 | /** |
||
54 | * @param Model $commentable |
||
55 | * @param $data |
||
56 | * @param Model $creator |
||
57 | * |
||
58 | * @return static |
||
59 | */ |
||
60 | public function createComment(Model $commentable, $data, Model $creator) |
||
72 | |||
73 | /** |
||
74 | * @param $id |
||
75 | * @param $data |
||
76 | * |
||
77 | * @return mixed |
||
78 | */ |
||
79 | public function updateComment($id, $data) |
||
86 | |||
87 | /** |
||
88 | * @param $id |
||
89 | * |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function deleteComment($id) |
||
96 | } |
||
97 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.