| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RedirectCompleteFlowRequest extends AbstractRequest |
||
| 9 | { |
||
| 10 | public function getRedirectFlowId() |
||
| 11 | { |
||
| 12 | return $this->getParameter('redirectFlowId'); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function setRedirectFlowId($value) |
||
| 16 | { |
||
| 17 | return $this->setParameter('redirectFlowId', $value); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getSessionToken() |
||
| 23 | } |
||
| 24 | |||
| 25 | public function setSessionToken($value) |
||
| 26 | { |
||
| 27 | return $this->setParameter('sessionToken', $value); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getData() |
||
| 31 | { |
||
| 32 | $this->validate('redirectFlowId', 'sessionToken'); |
||
| 33 | $this->action = '/redirect_flows/'.$this->getRedirectFlowId().'/actions/complete'; |
||
| 34 | return ['session_token' => $this->getSessionToken()]; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Send the request with specified data |
||
| 39 | * |
||
| 40 | * @param mixed $data The data to send |
||
| 41 | * |
||
| 42 | * @return RedirectCompleteFlowResponse |
||
| 43 | */ |
||
| 44 | public function sendData($data) |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |