| @@ 8-157 (lines=150) @@ | ||
| 5 | ||
| 6 | use Isign\StatusResultInterface; |
|
| 7 | ||
| 8 | class ScVerifyResult implements StatusResultInterface |
|
| 9 | { |
|
| 10 | /** @var string */ |
|
| 11 | private $status; |
|
| 12 | ||
| 13 | /** @var string */ |
|
| 14 | private $name; |
|
| 15 | ||
| 16 | /** @var string */ |
|
| 17 | private $surname; |
|
| 18 | ||
| 19 | /** @var string */ |
|
| 20 | private $code; |
|
| 21 | ||
| 22 | /** @var string email not always available */ |
|
| 23 | private $email; |
|
| 24 | ||
| 25 | /** @var string */ |
|
| 26 | private $country; |
|
| 27 | ||
| 28 | /** |
|
| 29 | * Fields expected in response |
|
| 30 | * @return array |
|
| 31 | */ |
|
| 32 | public function getFields() |
|
| 33 | { |
|
| 34 | return [ |
|
| 35 | 'status', |
|
| 36 | 'name', |
|
| 37 | 'surname', |
|
| 38 | 'code', |
|
| 39 | 'email', |
|
| 40 | 'country', |
|
| 41 | ]; |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * Gets the value of status. |
|
| 46 | * @return mixed |
|
| 47 | */ |
|
| 48 | public function getStatus() |
|
| 49 | { |
|
| 50 | return $this->status; |
|
| 51 | } |
|
| 52 | ||
| 53 | /** |
|
| 54 | * Sets the value of status. |
|
| 55 | * @param mixed $status the status |
|
| 56 | * @return void |
|
| 57 | */ |
|
| 58 | public function setStatus($status) |
|
| 59 | { |
|
| 60 | $this->status = $status; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * Gets the value of name. |
|
| 65 | * @return mixed |
|
| 66 | */ |
|
| 67 | public function getName() |
|
| 68 | { |
|
| 69 | return $this->name; |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Sets the value of name. |
|
| 74 | * @param mixed $name the name |
|
| 75 | * @return void |
|
| 76 | */ |
|
| 77 | public function setName($name) |
|
| 78 | { |
|
| 79 | $this->name = $name; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * Gets the value of surname. |
|
| 84 | * @return mixed |
|
| 85 | */ |
|
| 86 | public function getSurname() |
|
| 87 | { |
|
| 88 | return $this->surname; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * Sets the value of surname. |
|
| 93 | * @param mixed $surname the surname |
|
| 94 | * @return void |
|
| 95 | */ |
|
| 96 | public function setSurname($surname) |
|
| 97 | { |
|
| 98 | $this->surname = $surname; |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * Gets the value of code. |
|
| 103 | * @return mixed |
|
| 104 | */ |
|
| 105 | public function getCode() |
|
| 106 | { |
|
| 107 | return $this->code; |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * Sets the value of code. |
|
| 112 | * @param mixed $code the code |
|
| 113 | * @return void |
|
| 114 | */ |
|
| 115 | public function setCode($code) |
|
| 116 | { |
|
| 117 | $this->code = $code; |
|
| 118 | } |
|
| 119 | ||
| 120 | /** |
|
| 121 | * Gets the value of email. |
|
| 122 | * @return mixed |
|
| 123 | */ |
|
| 124 | public function getEmail() |
|
| 125 | { |
|
| 126 | return $this->email; |
|
| 127 | } |
|
| 128 | ||
| 129 | /** |
|
| 130 | * Sets the value of email. |
|
| 131 | * @param mixed $email the email |
|
| 132 | * @return void |
|
| 133 | */ |
|
| 134 | public function setEmail($email) |
|
| 135 | { |
|
| 136 | $this->email = $email; |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * Gets the value of country. |
|
| 141 | * @return mixed |
|
| 142 | */ |
|
| 143 | public function getCountry() |
|
| 144 | { |
|
| 145 | return $this->country; |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * Sets the value of country. |
|
| 150 | * @param mixed $country the country |
|
| 151 | * @return void |
|
| 152 | */ |
|
| 153 | public function setCountry($country) |
|
| 154 | { |
|
| 155 | $this->country = $country; |
|
| 156 | } |
|
| 157 | } |
|
| 158 | ||
| @@ 9-147 (lines=139) @@ | ||
| 6 | /** |
|
| 7 | * Result object for smart ID login status response. |
|
| 8 | */ |
|
| 9 | class SmartIdStatusResult extends AbstractStatusResult |
|
| 10 | { |
|
| 11 | /** @var string user's login certificate */ |
|
| 12 | private $certificate; |
|
| 13 | ||
| 14 | /** @var string personal code */ |
|
| 15 | private $code; |
|
| 16 | ||
| 17 | /** @var string Country code */ |
|
| 18 | private $country; |
|
| 19 | ||
| 20 | /** @var string name */ |
|
| 21 | private $name; |
|
| 22 | ||
| 23 | /** @var string surname */ |
|
| 24 | private $surname; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Fields expected in response |
|
| 28 | * @return array |
|
| 29 | */ |
|
| 30 | public function getFields() |
|
| 31 | { |
|
| 32 | return [ |
|
| 33 | 'status', |
|
| 34 | 'certificate', |
|
| 35 | 'code', |
|
| 36 | 'country', |
|
| 37 | 'name', |
|
| 38 | 'surname', |
|
| 39 | ]; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return string |
|
| 44 | */ |
|
| 45 | public function getStatus() |
|
| 46 | { |
|
| 47 | return $this->status; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @return string |
|
| 52 | */ |
|
| 53 | public function getCode() |
|
| 54 | { |
|
| 55 | return $this->code; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @return string |
|
| 60 | */ |
|
| 61 | public function getCountry() |
|
| 62 | { |
|
| 63 | return $this->country; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * @return string |
|
| 68 | */ |
|
| 69 | public function getName() |
|
| 70 | { |
|
| 71 | return $this->name; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @return string |
|
| 76 | */ |
|
| 77 | public function getSurname() |
|
| 78 | { |
|
| 79 | return $this->surname; |
|
| 80 | } |
|
| 81 | ||
| 82 | /** |
|
| 83 | * Set status |
|
| 84 | * @param string $status |
|
| 85 | * @return void |
|
| 86 | */ |
|
| 87 | public function setStatus($status) |
|
| 88 | { |
|
| 89 | $this->status = $status; |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * Set code |
|
| 94 | * @param string $code |
|
| 95 | * @return void |
|
| 96 | */ |
|
| 97 | public function setCode($code) |
|
| 98 | { |
|
| 99 | $this->code = $code; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * Set country |
|
| 104 | * @param string $country |
|
| 105 | * @return void |
|
| 106 | */ |
|
| 107 | public function setCountry($country) |
|
| 108 | { |
|
| 109 | $this->country = $country; |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * Set name |
|
| 114 | * @param string $name |
|
| 115 | * @return void |
|
| 116 | */ |
|
| 117 | public function setName($name) |
|
| 118 | { |
|
| 119 | $this->name = $name; |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * Set surname |
|
| 124 | * @param string $surname |
|
| 125 | * @return void |
|
| 126 | */ |
|
| 127 | public function setSurname($surname) |
|
| 128 | { |
|
| 129 | $this->surname = $surname; |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * @return string |
|
| 134 | */ |
|
| 135 | public function getCertificate() |
|
| 136 | { |
|
| 137 | return $this->certificate; |
|
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * @param string $certificate |
|
| 142 | */ |
|
| 143 | public function setCertificate($certificate) |
|
| 144 | { |
|
| 145 | $this->certificate = $certificate; |
|
| 146 | } |
|
| 147 | } |
|
| 148 | ||