Completed
Push — version-4 ( a7057e...e7ecec )
by
unknown
09:30
created

UnvalidNotificationException::getNotification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
namespace Fenos\Notifynder\Exceptions;
3
4
use Exception;
5
use Fenos\Notifynder\Builder\Notification;
6
7
class UnvalidNotificationException extends Exception
8
{
9
    public $notification;
10
11
    public function __construct(Notification $notification)
12
    {
13
        parent::__construct('The given data failed to pass validation.');
14
15
        $this->notification = $notification;
16
    }
17
18
    public function getNotification()
19
    {
20
        return $this->notification;
21
    }
22
}