From 4d1c514625dd8ba634750908dac6932d57ea6bf5 Mon Sep 17 00:00:00 2001 From: Alex Rothuis Date: Mon, 13 Jun 2016 16:11:58 +0200 Subject: [PATCH] Update RaLocationId: accessor, serializable --- .../Stepup/Configuration/Value/RaLocationId.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Surfnet/Stepup/Configuration/Value/RaLocationId.php b/src/Surfnet/Stepup/Configuration/Value/RaLocationId.php index 5e94db189..9c8decca0 100644 --- a/src/Surfnet/Stepup/Configuration/Value/RaLocationId.php +++ b/src/Surfnet/Stepup/Configuration/Value/RaLocationId.php @@ -18,9 +18,10 @@ namespace Surfnet\Stepup\Configuration\Value; +use JsonSerializable; use Surfnet\Stepup\Exception\InvalidArgumentException; -final class RaLocationId +final class RaLocationId implements JsonSerializable { /** * @var string @@ -48,6 +49,14 @@ public function equals(RaLocationId $otherRaLocationId) return $this->raLocationId === $otherRaLocationId->raLocationId; } + /** + * @return string + */ + public function getRaLocationId() + { + return $this->raLocationId; + } + public function jsonSerialize() { return (string) $this;