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

IllegalMailbox::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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