| 1 | <?php |
||
| 23 | final class GssfId implements SecondFactorIdentifier |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $gssfId; |
||
| 29 | |||
| 30 | public static function unknown() |
||
| 34 | |||
| 35 | public function __construct($gssfId) |
||
| 36 | { |
||
| 37 | if (!is_string($gssfId) || trim($gssfId) === '') { |
||
| 38 | throw InvalidArgumentException::invalidType('non-empty string', 'gssfId', $gssfId); |
||
| 39 | } |
||
| 40 | |||
| 41 | $this->gssfId = trim($gssfId); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getValue() |
||
| 48 | |||
| 49 | public function __toString() |
||
| 50 | { |
||
| 51 | return $this->gssfId; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function equals(SecondFactorIdentifier $other) |
||
| 58 | |||
| 59 | public function jsonSerialize() |
||
| 63 | } |
||
| 64 |