| 1 | <?php |
||
| 5 | class AccountLinking |
||
| 6 | { |
||
| 7 | const STATUS_LINKED = 'linked'; |
||
| 8 | const STATUS_UNLINKED = 'unlinked'; |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $status; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var null|string |
||
| 16 | */ |
||
| 17 | private $authorizationCode; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $status |
||
| 21 | * @param null|string $authorizationCode |
||
| 22 | */ |
||
| 23 | 5 | public function __construct($status, $authorizationCode = null) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 1 | public function getStatus() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return null|string |
||
| 39 | */ |
||
| 40 | 2 | public function getAuthorizationCode() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param array $payload |
||
| 47 | * |
||
| 48 | * @return static |
||
| 49 | */ |
||
| 50 | 1 | public static function create(array $payload) |
|
| 55 | } |
||
| 56 |