Test Setup Failed
Push — parse-domain-literal ( 97f1d2 )
by Eduardo Gulias
01:49
created

SpoofEmail::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Egulias\EmailValidator\Result;
3
4
use Egulias\EmailValidator\Result\InvalidEmail;
5
use Egulias\EmailValidator\Result\Reason\SpoofEmail as ReasonSpoofEmail;
6
7
class SpoofEmail extends InvalidEmail
8
{
9
    public function __construct()
10
    {
11
        $this->reason = new ReasonSpoofEmail();
0 ignored issues
show
Bug introduced by
The property reason cannot be accessed from this context as it is declared private in class Egulias\EmailValidator\Result\InvalidEmail.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
12
        parent::__construct($this->reason, '');
0 ignored issues
show
Bug introduced by
The property reason cannot be accessed from this context as it is declared private in class Egulias\EmailValidator\Result\InvalidEmail.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
13
    }
14
}