| 1 | <?php |
||
| 9 | class OrdersList extends MoipResource |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @const string |
||
| 13 | */ |
||
| 14 | const PATH = 'orders'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @const string |
||
| 18 | */ |
||
| 19 | const CREATED_AT = 'createdAt'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @const string |
||
| 23 | */ |
||
| 24 | const PAYMENT_METHOD = 'paymentMethod'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @const string |
||
| 28 | */ |
||
| 29 | const VALUE = 'value'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @const string |
||
| 33 | */ |
||
| 34 | const STATUS = 'status'; |
||
| 35 | |||
| 36 | public function initialize() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get orders. |
||
| 44 | * |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function getOrders() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get an order list in MoIP. |
||
| 54 | * |
||
| 55 | * @param Pagination $pagination |
||
| 56 | * @param Filters $filters |
||
| 57 | * @param string $qParam Query a specific value. |
||
| 58 | * |
||
| 59 | * @return stdClass |
||
| 60 | */ |
||
| 61 | public function get(Pagination $pagination = null, Filters $filters = null, $qParam = '') |
||
| 65 | |||
| 66 | protected function populate(stdClass $response) |
||
| 78 | } |
||
| 79 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: