Test Failed
Pull Request — master (#70)
by Rafael
06:04
created

Users::assemble()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 8
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Gewaer\Notifications\Mobile;
4
5
use Namshi\Notificator\Notification;
6
use Gewaer\Contracts\PushNotifications as PushNotificationsContract;
7
use Gewaer\Models\Notifications;
8
use Gewaer\Notifications\Mobile\Mobile;
9
use Gewaer\Traits\NotificationsTrait;
10
11
class Users extends Mobile implements PushNotificationsContract
12
{
13
    /**
14
     * Notifications Trait
15
     */
16
    use NotificationsTrait;
17
18
    /**
19
     * Assemble an Apps Push Notification
20
     * @todo Create specific assembler for apps push notifications
21
     */
22
    public function assemble()
23
    {
24
        /**
25
         * Create a new database record
26
         */
27
        self::create((array)$this->user, $this->content, Notifications::USERS, $this->systemModule);
28
29
        return $this->content . " From Users";
30
    }
31
}
32