| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getDescriptionForEvent(string $eventName): string |
||
| 19 | { |
||
| 20 | // dd(Activity::where('subject_id',)->pluck('subject_id')); |
||
| 21 | if ($eventName == 'created') { |
||
| 22 | return 'Chat Script'.$this->name.' was created'; |
||
| 23 | } |
||
| 24 | |||
| 25 | if ($eventName == 'updated') { |
||
| 26 | return 'Chat Script <strong> '.$this->name.'</strong> was updated'; |
||
| 27 | } |
||
| 28 | |||
| 29 | if ($eventName == 'deleted') { |
||
| 30 | return 'Chat Script <strong> '.$this->name.' </strong> was deleted'; |
||
| 31 | } |
||
| 32 | |||
| 33 | return ''; |
||
| 34 | |||
| 39 |