Completed
Push — version-4 ( a26cca...5903bf )
by
unknown
02:38
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
3
namespace Fenos\Notifynder\Exceptions;
4
5
use Exception;
6
use Fenos\Notifynder\Builder\Notification;
7
8
class UnvalidNotificationException extends Exception
9
{
10
    public $notification;
11
12
    public function __construct(Notification $notification)
13
    {
14
        parent::__construct('The given data failed to pass validation.');
15
16
        $this->notification = $notification;
17
    }
18
19
    public function getNotification()
20
    {
21
        return $this->notification;
22
    }
23
}
24