Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class MessageService extends CRUDServices |
||
9 | { |
||
10 | /** |
||
11 | * @var Message |
||
12 | */ |
||
13 | private $message; |
||
14 | |||
15 | public function __construct(Message $message) |
||
21 | } |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return Message |
||
26 | */ |
||
27 | public function getMessage(): Message |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * This sets the attributes to be removed from the given set for updating or creating. |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getUnsetFields() |
||
37 | { |
||
38 | return 'message_id'; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * This get the model value or class of the model in the service. |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function getModel() |
||
48 | } |
||
49 | |||
50 | public function getParentRelationship() |
||
55 |