Total Complexity | 4 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
24 | class PaymentSessionResponse { |
||
25 | /** |
||
26 | * The encoded payment session that you need to pass to the SDK. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $payment_session; |
||
31 | |||
32 | /** |
||
33 | * Construct payment session response object. |
||
34 | * |
||
35 | * @param string $payment_session The encoded payment session. |
||
36 | */ |
||
37 | public function __construct( $payment_session ) { |
||
38 | $this->payment_session = $payment_session; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get payment session. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function get_payment_session() { |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Create payment session repsonse from object. |
||
52 | * |
||
53 | * @param object $object Object. |
||
54 | * @return PaymentSessionResponse |
||
55 | * @throws InvalidArgumentException Throws invalid argument exception when object does not contains the required properties. |
||
56 | */ |
||
57 | public static function from_object( $object ) { |
||
63 | } |
||
64 | } |
||
65 |