Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 5 | public function __construct(Request $request) |
|
23 | { |
||
24 | 5 | parent::__construct($request); |
|
25 | |||
26 | 5 | $this->actions->add('get', new Action(Request::METHOD_GET, 'countries/%s/provinces/%s.json', 'province', 'province')); |
|
27 | 5 | $this->actions->add('all', new Action(Request::METHOD_GET, 'countries/%s/provinces.json', 'provinces', 'provinces')); |
|
28 | 5 | $this->actions->add('count', new Action(Request::METHOD_GET, 'countries/%s/provinces/count.json', 'count', 'count')); |
|
29 | 5 | $this->actions->add('update', new Action(Request::METHOD_PUT, 'countries/%s/provinces/%s.json', 'province', 'province')); |
|
30 | 5 | } |
|
31 | } |
||
32 |