@@ -166,7 +166,7 @@ |
||
166 | 166 | /** |
167 | 167 | * Create a new order in MoIP. |
168 | 168 | * |
169 | - * @return Orders |
|
169 | + * @return stdClass |
|
170 | 170 | */ |
171 | 171 | public function create() |
172 | 172 | { |
@@ -74,6 +74,9 @@ |
||
74 | 74 | } |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $key |
|
79 | + */ |
|
77 | 80 | protected function getIfSetDateFmt($key, $fmt, stdClass $data = null) |
78 | 81 | { |
79 | 82 | $val = $this->getIfSet($key, $data); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * |
38 | 38 | * @param \Requests_Hooks $hooks Hook system |
39 | 39 | */ |
40 | - public function register(Requests_Hooks &$hooks) |
|
40 | + public function register(Requests_Hooks & $hooks) |
|
41 | 41 | { |
42 | 42 | $hooks->register('requests.before_request', [&$this, 'before_request']); |
43 | 43 | } |
@@ -154,15 +154,15 @@ |
||
154 | 154 | return $refund; |
155 | 155 | } |
156 | 156 | |
157 | - /** |
|
158 | - * Get payment status. |
|
159 | - * |
|
160 | - * @return string Payment status. Possible values CREATED, WAITING, IN_ANALYSIS, PRE_AUTHORIZED, AUTHORIZED, CANCELLED, REFUNDED, REVERSED, SETTLED |
|
161 | - */ |
|
162 | - public function getStatus() |
|
163 | - { |
|
164 | - return $this->getIfSet('status'); |
|
165 | - } |
|
157 | + /** |
|
158 | + * Get payment status. |
|
159 | + * |
|
160 | + * @return string Payment status. Possible values CREATED, WAITING, IN_ANALYSIS, PRE_AUTHORIZED, AUTHORIZED, CANCELLED, REFUNDED, REVERSED, SETTLED |
|
161 | + */ |
|
162 | + public function getStatus() |
|
163 | + { |
|
164 | + return $this->getIfSet('status'); |
|
165 | + } |
|
166 | 166 | |
167 | 167 | /** |
168 | 168 | * get creation time. |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * @param \Requests_Hooks $hooks Hook system |
48 | 48 | */ |
49 | - public function register(Requests_Hooks &$hooks) |
|
49 | + public function register(Requests_Hooks & $hooks) |
|
50 | 50 | { |
51 | 51 | $hooks->register('requests.before_request', [&$this, 'before_request']); |
52 | 52 | } |