Skip to content

Commit

Permalink
Update RaLocationId: accessor, serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rothuis committed Jun 13, 2016
1 parent d340449 commit 4d1c514
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Surfnet/Stepup/Configuration/Value/RaLocationId.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4d1c514

Please sign in to comment.