1 | <?php |
||
27 | final class TokenResponse extends AbstractResponse implements InitializationInterface { |
||
28 | /** |
||
29 | * @var string temporary, 10-minutes card token |
||
30 | */ |
||
31 | private $id = ''; |
||
32 | |||
33 | /** |
||
34 | * @var int expiration timestamp |
||
35 | */ |
||
36 | private $expiresAt = 0; |
||
37 | |||
38 | /** |
||
39 | * @var null|CardResponse instance with safely card data |
||
40 | */ |
||
41 | private $Card = null; |
||
42 | |||
43 | /** |
||
44 | * @return string temporary, 10-minutes card token |
||
45 | */ |
||
46 | 1 | public function getId() { |
|
49 | |||
50 | /** |
||
51 | * @return int expiration timestamp |
||
52 | */ |
||
53 | 1 | public function getExpiresAt() { |
|
56 | |||
57 | /** |
||
58 | * @return null|CardResponse instance with safely card data |
||
59 | */ |
||
60 | 1 | public function getCard() { |
|
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | * @return TokenResponse card's token instance |
||
67 | */ |
||
68 | 1 | public static function initializeByString($string) { |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | 1 | public function __toString() { |
|
93 | } |
||
94 |