| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 17 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 5 | public function __construct(Request $request) |
|
| 21 | { |
||
| 22 | 5 | parent::__construct($request); |
|
| 23 | |||
| 24 | 5 | $this->actions->add( |
|
| 25 | 5 | 'all', |
|
| 26 | 5 | new Action( |
|
| 27 | 5 | Request::METHOD_GET, |
|
| 28 | 5 | 'checkouts.json', |
|
| 29 | 5 | 'checkouts', |
|
| 30 | 5 | 'checkouts' |
|
| 31 | ) |
||
| 32 | ); |
||
| 33 | 5 | $this->actions->add( |
|
| 34 | 5 | 'count', |
|
| 35 | 5 | new Action( |
|
| 36 | 5 | Request::METHOD_GET, |
|
| 37 | 5 | 'checkouts/count.json', |
|
| 38 | 5 | 'count', |
|
| 39 | 5 | 'count' |
|
| 40 | ) |
||
| 41 | ); |
||
| 42 | 5 | } |
|
| 43 | } |
||
| 44 |