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

UnvalidNotificationException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 16
rs 10
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getNotification() 0 4 1
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
}