Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function create(string $title, string $content, string $ownerId = null): Notification |
||
10 | { |
||
11 | $notification = new Notification(); |
||
12 | $notification->setTitle($title); |
||
13 | $notification->setContent($content); |
||
14 | |||
15 | if ($ownerId) { |
||
16 | $notification->setOwnerId($ownerId); |
||
17 | } |
||
18 | |||
19 | return $notification; |
||
20 | } |
||
22 |