Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class OrderHistoryPage extends \Page |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private static $singular_name = 'Order History Page'; |
||
|
|||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private static $plural_name = 'Order History Pages'; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private static $description = 'Show a customers past orders. Requires authentication'; |
||
25 | |||
26 | /** |
||
27 | * return all current Member's Orders. |
||
28 | * |
||
29 | * @param int $limit |
||
30 | * |
||
31 | * @return bool|PaginatedList |
||
32 | * |
||
33 | * @throws \Exception |
||
34 | */ |
||
35 | public function getOrders($limit = 10) |
||
49 |