src/EventStore/ValueObjects/Enum/Enum.php 1 location
|
@@ 37-44 (lines=8) @@
|
34 |
|
* @param Enum $enum |
35 |
|
* @return bool |
36 |
|
*/ |
37 |
|
public function sameValueAs(ValueObjectInterface $enum) |
38 |
|
{ |
39 |
|
if (false === Util::classEquals($this, $enum)) { |
40 |
|
return false; |
41 |
|
} |
42 |
|
|
43 |
|
return $this->toNative() === $enum->toNative(); |
44 |
|
} |
45 |
|
|
46 |
|
/** |
47 |
|
* Returns a native string representation of the Enum value |
src/EventStore/ValueObjects/Identity/UUID.php 1 location
|
@@ 64-71 (lines=8) @@
|
61 |
|
* @param UUID $uuid |
62 |
|
* @return bool |
63 |
|
*/ |
64 |
|
public function sameValueAs(ValueObjectInterface $uuid) |
65 |
|
{ |
66 |
|
if (false === Util::classEquals($this, $uuid)) { |
67 |
|
return false; |
68 |
|
} |
69 |
|
|
70 |
|
return $this->toNative() === $uuid->toNative(); |
71 |
|
} |
72 |
|
} |
73 |
|
|
src/EventStore/ValueObjects/StringLiteral/StringLiteral.php 1 location
|
@@ 55-62 (lines=8) @@
|
52 |
|
* @param ValueObjectInterface $stringLiteral |
53 |
|
* @return bool |
54 |
|
*/ |
55 |
|
public function sameValueAs(ValueObjectInterface $stringLiteral) |
56 |
|
{ |
57 |
|
if (false === Util::classEquals($this, $stringLiteral)) { |
58 |
|
return false; |
59 |
|
} |
60 |
|
|
61 |
|
return $this->toNative() === $stringLiteral->toNative(); |
62 |
|
} |
63 |
|
|
64 |
|
/** |
65 |
|
* Tells whether the StringLiteral is empty |