Passed
Pull Request — master (#194)
by
unknown
02:41
created

IllegalMailbox   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Egulias\EmailValidator\Validation\Error;
4
5
use Egulias\EmailValidator\Exception\InvalidEmail;
6
7
class IllegalMailbox extends InvalidEmail
8
{
9
    const CODE = 995;
10
    const REASON = "The mailbox is illegal.";
11
12
    /**
13
     * @var int
14
     */
15
    private $responseCode;
16
17
    /**
18
     * IllegalMailbox constructor.
19
     *
20
     * @param int $responseCode
21
     */
22 3
    public function __construct($responseCode)
23
    {
24 3
        parent::__construct();
25
26 3
        $this->responseCode = $responseCode;
27 3
    }
28
}
29