File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,16 @@ final class MatchedDomain implements Domain
25
25
*/
26
26
private $ publicSuffix ;
27
27
28
- /**
29
- * @var bool
30
- */
31
- private $ isValid ;
32
-
33
28
/**
34
29
* New instance.
35
30
*
36
31
* @param string|null $domain
37
32
* @param string|null $publicSuffix
38
- * @param bool $isValid
39
33
*/
40
- public function __construct (string $ domain = null , string $ publicSuffix = null , bool $ isValid = true )
34
+ public function __construct (string $ domain = null , string $ publicSuffix = null )
41
35
{
42
36
$ this ->domain = $ domain ;
43
37
$ this ->publicSuffix = $ publicSuffix ;
44
- $ this ->isValid = $ isValid ;
45
38
}
46
39
47
40
/**
@@ -65,7 +58,7 @@ public function getPublicSuffix()
65
58
*/
66
59
public function isValid (): bool
67
60
{
68
- return $ this -> isValid ;
61
+ return true ;
69
62
}
70
63
71
64
/**
Original file line number Diff line number Diff line change @@ -25,23 +25,16 @@ final class UnmatchedDomain implements Domain
25
25
*/
26
26
private $ publicSuffix ;
27
27
28
- /**
29
- * @var bool
30
- */
31
- private $ isValid ;
32
-
33
28
/**
34
29
* New instance.
35
30
*
36
31
* @param string|null $domain
37
32
* @param string|null $publicSuffix
38
- * @param bool $isValid
39
33
*/
40
- public function __construct (string $ domain = null , string $ publicSuffix = null , bool $ isValid = false )
34
+ public function __construct (string $ domain = null , string $ publicSuffix = null )
41
35
{
42
36
$ this ->domain = $ domain ;
43
37
$ this ->publicSuffix = $ publicSuffix ;
44
- $ this ->isValid = $ isValid ;
45
38
}
46
39
47
40
/**
@@ -65,7 +58,7 @@ public function getPublicSuffix()
65
58
*/
66
59
public function isValid (): bool
67
60
{
68
- return $ this -> isValid ;
61
+ return false ;
69
62
}
70
63
71
64
/**
You can’t perform that action at this time.
0 commit comments