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

HasNotificationTrait::setNotification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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