1 | <?php |
||
26 | class RemoteVettingProcessDto implements Serializable |
||
|
|||
27 | { |
||
28 | /** |
||
29 | * @var ProcessId |
||
30 | */ |
||
31 | private $processId; |
||
32 | /** |
||
33 | * @var RemoteVettingTokenDto |
||
34 | */ |
||
35 | private $token; |
||
36 | /** |
||
37 | * @var RemoteVettingState|null |
||
38 | */ |
||
39 | private $state = null; |
||
40 | /** |
||
41 | * @var AttributeListDto |
||
42 | */ |
||
43 | private $attributes; |
||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $identityProviderName; |
||
48 | |||
49 | /** |
||
50 | * @param ProcessId $processId |
||
51 | * @param RemoteVettingTokenDto $token |
||
52 | * @param string $identityProviderName |
||
53 | * @return RemoteVettingProcessDto |
||
54 | * @throws \Assert\AssertionFailedException |
||
55 | */ |
||
56 | public static function create(ProcessId $processId, RemoteVettingTokenDto $token, $identityProviderName) |
||
60 | |||
61 | /** |
||
62 | * @param string $serialized |
||
63 | * @return RemoteVettingProcessDto |
||
64 | */ |
||
65 | public static function deserialize($serialized) |
||
77 | |||
78 | /** |
||
79 | * @param RemoteVettingProcessDto $process |
||
80 | * @param RemoteVettingState $state |
||
81 | * @return RemoteVettingProcessDto |
||
82 | */ |
||
83 | public static function updateState(RemoteVettingProcessDto $process, RemoteVettingState $state) |
||
87 | |||
88 | /** |
||
89 | * @param ProcessId $processId |
||
90 | * @param RemoteVettingTokenDto $token |
||
91 | * @param RemoteVettingState $state |
||
92 | * @param AttributeListDto $attributes |
||
93 | * @param string $identityProviderName |
||
94 | * @throws \Assert\AssertionFailedException |
||
95 | */ |
||
96 | private function __construct( |
||
111 | |||
112 | /** |
||
113 | * @return ProcessId |
||
114 | */ |
||
115 | public function getProcessId() |
||
119 | |||
120 | /** |
||
121 | * @return RemoteVettingTokenDto |
||
122 | */ |
||
123 | public function getToken() |
||
127 | |||
128 | /** |
||
129 | * @return RemoteVettingState |
||
130 | */ |
||
131 | public function getState() |
||
135 | |||
136 | /** |
||
137 | * @return AttributeListDto |
||
138 | */ |
||
139 | public function getAttributes() |
||
143 | |||
144 | /** |
||
145 | * @param AttributeListDto $attributes |
||
146 | */ |
||
147 | public function setAttributes($attributes) |
||
151 | |||
152 | /** |
||
153 | * @return string |
||
154 | */ |
||
155 | public function getIdentityProviderName() |
||
159 | |||
160 | /** |
||
161 | * @inheritDoc |
||
162 | */ |
||
163 | public function serialize() |
||
182 | |||
183 | /** |
||
184 | * @inheritDoc |
||
185 | */ |
||
186 | public function unserialize($serialized) |
||
198 | } |
||
199 |