Exception   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getErrors() 0 4 1
1
<?php
2
3
namespace Ddeboer\Imap\Exception;
4
5
class Exception extends \RuntimeException
6
{
7
    protected $errors = array();
8
9
    public function __construct($message, $code = null, $previous = null)
10
    {
11
        parent::__construct($message, $code, $previous);
12
        $this->errors = imap_errors();
13
    }
14
15
    /**
16
     * Get IMAP errors
17
     *
18
     * @return array
19
     */
20
    public function getErrors()
21
    {
22
        return $this->errors;
23
    }
24
}
25