Test Failed
Pull Request — master (#70)
by Rafael
07:26 queued 02:00
created

SystemPushNotifications   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A assemble() 0 8 1
1
<?php
2
3
namespace Gewaer\Notifications\PushNotifications;
4
5
use Namshi\Notificator\Notification;
6
use Gewaer\Contracts\PushNotificationsContract;
7
use Gewaer\Models\Users;
8
use Gewaer\Models\Notifications;
9
use Gewaer\Notifications\PushNotifications\PushNotifications as PushNotifications;
10
use Gewaer\Traits\NotificationsTrait;
11
12
class SystemPushNotifications extends PushNotifications implements PushNotificationsContract
13
{
14
    /**
15
     * Notifications Trait
16
     */
17
    use NotificationsTrait;
18
19
    /**
20
     * Assemble an Apps Push Notification
21
     * @todo Create specific assembler for apps push notifications
22
     */
23
    public function assemble()
24
    {
25
        /**
26
         * Create a new database record
27
         */
28
        self::create($this->user, $this->content, Notifications::SYSTEM, $this->systemModule);
29
30
        return $this->content . " From System";
31
    }
32
}
33