Completed
Push — 3.0.0-dev ( 34d49c...6abede )
by Eduardo Gulias
02:52 queued 01:22
created

SpoofEmail   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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
}