ErrorEvent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 28
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getError() 0 4 1
A getException() 0 4 1
A getData() 0 4 1
1
<?php
2
namespace AramisAuto\EmailController\Event;
3
4
use Symfony\Component\EventDispatcher\Event;
5
6
class ErrorEvent extends Event
7
{
8
    private $error;
9
    private $exception;
10
    private $data = array();
11
12
    public function __construct($error, \Exception $exception = null, $data = array())
13
    {
14
        $this->error = $error;
15
        $this->exception = $exception;
16
        $this->data = $data;
17
    }
18
19
    public function getError()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
20
    {
21
        return $this->error;
22
    }
23
24
    public function getException()
25
    {
26
        return $this->exception;
27
    }
28
29
    public function getData()
30
    {
31
        return $this->data;
32
    }
33
}
34