1 | <?php |
||
22 | class RemoteVettingTokenDto implements Serializable |
||
|
|||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $identityId; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $secondFactorId; |
||
32 | |||
33 | /** |
||
34 | * @param string $identityId |
||
35 | * @param string $secondFactorId |
||
36 | * @return RemoteVettingTokenDto |
||
37 | */ |
||
38 | public static function create($identityId, $secondFactorId) |
||
42 | |||
43 | /** |
||
44 | * @return RemoteVettingTokenDto |
||
45 | */ |
||
46 | public static function notSet() |
||
47 | { |
||
48 | return new self('', ''); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param string $serialized |
||
53 | * @return RemoteVettingTokenDto |
||
54 | */ |
||
55 | public static function deserialize($serialized) |
||
61 | |||
62 | /** |
||
63 | * @param string $identityId |
||
64 | * @param string $secondFactorId |
||
65 | */ |
||
66 | private function __construct($identityId, $secondFactorId) |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getIdentityId() |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getSecondFactorId() |
||
87 | |||
88 | /** |
||
89 | * @inheritDoc |
||
90 | */ |
||
91 | public function serialize() |
||
98 | |||
99 | /** |
||
100 | * @inheritDoc |
||
101 | */ |
||
102 | public function unserialize($serialized) |
||
109 | } |
||
110 |