EventNotFound   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Iris\Exceptions;
4
5
class EventNotFound extends \InvalidArgumentException
6
{
7
    /**
8
     * @param string    $eventName
9
     * @param string    $status
10
     * @param Exception $previous
11
     */
12 2
    public function __construct($eventName, $status, \Exception $previous = null)
13
    {
14 2
        $message = sprintf('Event %s is not found, the current status is %s', $eventName, $status);
15 2
        parent::__construct($message, 405, $previous);
16 2
    }
17
}
18