1 | <?php |
||
10 | class Links |
||
11 | { |
||
12 | /** |
||
13 | * @var array[string]Link Map a link name to it's representation. |
||
14 | */ |
||
15 | private $links; |
||
16 | |||
17 | /** |
||
18 | * @var \stdClass |
||
19 | */ |
||
20 | private $checkout; |
||
21 | |||
22 | /** |
||
23 | * Links constructor. |
||
24 | * |
||
25 | * @param stdClass $links "_link" returned from the API, if there isn't any. |
||
26 | */ |
||
27 | public function __construct(stdClass $links) |
||
32 | |||
33 | /** |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getSelf() |
||
40 | |||
41 | /** |
||
42 | * @param null|string $pay |
||
43 | * |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function getCheckout($pay) |
||
50 | |||
51 | /** |
||
52 | * @param null|string $link |
||
53 | * |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function getLink($link) |
||
68 | |||
69 | /** |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function getAllCheckout() |
||
76 | |||
77 | private function generateMethods() |
||
87 | } |
||
88 |