Passed
Push — master ( 1877a1...37d1bb )
by Gabriel
10:54
created

HasNotificationTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setNotification() 0 3 1
A getNotification() 0 3 1
1
<?php
2
3
namespace ByTIC\Notifications\Messages\Builder\Traits;
4
5
use ByTIC\Notifications\Notification;
6
7
/**
8
 * Trait HasNotificationTrait
9
 * @package ByTIC\Notifications\Messages\Builder\Traits
10
 */
11
trait HasNotificationTrait
12
{
13
    /**
14
     * @var Notification
15
     */
16
    protected $notification = null;
17
18
19
    /**
20
     * @return Notification
21
     */
22
    public function getNotification()
23
    {
24
        return $this->notification;
25
    }
26
27
    /**
28
     * Set the Notification instance
29
     *
30
     * @param Notification $notification Notification instance
31
     *
32
     * @return void
33
     */
34
    public function setNotification($notification)
35
    {
36
        $this->notification = $notification;
37
    }
38
}
39