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
|
@@ 120-127 (lines=8) @@
|
| 117 |
|
return $this->matchStrings($this->type, $other->getType()); |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
protected function matchStrings($lhs, $rhs) |
| 121 |
|
{ |
| 122 |
|
if ($lhs === self::NONE || $rhs === self::NONE) { |
| 123 |
|
return false; |
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
return (string) $lhs === (string) $rhs; |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
public function jsonSerialize() |
| 130 |
|
{ |