1 | <?php |
||
12 | class Moip |
||
13 | { |
||
14 | /** |
||
15 | * Class Moip sdk. |
||
16 | * |
||
17 | * @var \Moip\Moip |
||
18 | **/ |
||
19 | private $moip; |
||
20 | |||
21 | /** |
||
22 | * Moip constructor. |
||
23 | * |
||
24 | * @param \Moip\Moip $api |
||
25 | */ |
||
26 | function __construct(Api $api) |
||
32 | |||
33 | /** |
||
34 | * Return a intance of package. |
||
35 | * |
||
36 | * @return \Moip\Moip |
||
37 | */ |
||
38 | public function getApi() |
||
42 | |||
43 | /** |
||
44 | * Start Moip sdk. |
||
45 | * |
||
46 | * @deprecated |
||
47 | */ |
||
48 | public function start() |
||
52 | |||
53 | /** |
||
54 | * Create a new Accounts instance. |
||
55 | * |
||
56 | * @return \Moip\Resource\Account |
||
57 | */ |
||
58 | public function accounts() |
||
62 | |||
63 | /** |
||
64 | * Create a new Customer instance. |
||
65 | * |
||
66 | * @return \Moip\Resource\Customer |
||
67 | */ |
||
68 | public function customers() |
||
72 | |||
73 | /** |
||
74 | * Create a new Entry instance. |
||
75 | * |
||
76 | * @return \Moip\Resource\Entry |
||
77 | */ |
||
78 | public function entries() |
||
82 | |||
83 | /** |
||
84 | * Create a new Order instance. |
||
85 | * |
||
86 | * @return \Moip\Resource\Orders |
||
87 | */ |
||
88 | public function orders() |
||
92 | |||
93 | /** |
||
94 | * Create a new Payment instance. |
||
95 | * |
||
96 | * @return \Moip\Resource\Payment |
||
97 | */ |
||
98 | public function payments() |
||
102 | |||
103 | /** |
||
104 | * Create a new Multiorders instance. |
||
105 | * |
||
106 | * @return \Moip\Resource\Multiorders |
||
107 | */ |
||
108 | public function multiorders() |
||
112 | |||
113 | /** |
||
114 | * Create a new Notifications instance. |
||
115 | * |
||
116 | * @return \Moip\Resource\NotificationPreferences |
||
117 | */ |
||
118 | public function notifications() |
||
122 | |||
123 | /** |
||
124 | * Create a new Tranfers instance. |
||
125 | * |
||
126 | * @return \Moip\Resource\Transfers |
||
127 | */ |
||
128 | public function transfers() |
||
132 | } |
||
133 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.