src/type/Type.php 1 location
|
@@ 73-80 (lines=8) @@
|
70 |
|
: $this->checkMatches($this->id, $other->getId()); |
71 |
|
} |
72 |
|
|
73 |
|
protected function checkMatches($lhs, $rhs) |
74 |
|
{ |
75 |
|
if ($lhs === self::NONE || $rhs === self::NONE) { |
76 |
|
return false; |
77 |
|
} |
78 |
|
|
79 |
|
return (string) $lhs === (string) $rhs; |
80 |
|
} |
81 |
|
|
82 |
|
public function jsonSerialize() |
83 |
|
{ |
src/target/AbstractTarget.php 1 location
|
@@ 106-113 (lines=8) @@
|
103 |
|
return $this->matchStrings($this->type, $other->getType()); |
104 |
|
} |
105 |
|
|
106 |
|
protected function matchStrings($lhs, $rhs) |
107 |
|
{ |
108 |
|
if ($lhs === self::NONE || $rhs === self::NONE) { |
109 |
|
return false; |
110 |
|
} |
111 |
|
|
112 |
|
return (string) $lhs === (string) $rhs; |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
public function jsonSerialize() |