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