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

UnvalidNotificationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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