SendAppNotificationCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Hechoenlaravel\JarvisFoundation\Notifications\SendAppNotification;
4
5
/**
6
 * Class SendAppNotificationCommand
7
 * Sends an In App notification to a user
8
 * @package Hechoenlaravel\JarvisFoundation\Notifications\SendAppNotification
9
 */
10
class SendAppNotificationCommand
11
{
12
    /**
13
     * @var
14
     */
15
    public $user;
16
17
    /**
18
     * @var
19
     */
20
    public $type;
21
22
    /**
23
     * @var
24
     */
25
    public $message;
26
27
    /**
28
     * @var
29
     */
30
    public $link;
31
32
    /**
33
     * @param $user
34
     * @param $type
35
     * @param $message
36
     * @param $link
37
     */
38
    public function __construct($user, $type, $message, $link = null)
39
    {
40
        $this->user = $user;
41
        $this->type = $type;
42
        $this->message = $message;
43
        $this->link = $link;
44
    }
45
}
46