| 1 | <?php |
||
| 7 | class CommentRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Create a new comment instance after a valid validation. |
||
| 11 | * |
||
| 12 | * @param array $data The data used to create the comment. |
||
| 13 | * @param \Xetaravel\Models\User $user The current user. |
||
| 14 | * |
||
| 15 | * @return \Xetaravel\Models\Comment |
||
| 16 | */ |
||
| 17 | public static function create(array $data, $user): Comment |
||
| 25 | } |
||
| 26 |