IndexResource::respond()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
namespace rtens\domin\delivery\web\adapters\curir\root;
3
4
use watoki\curir\Container;
5
use watoki\curir\cookie\CookieStore;
6
use watoki\curir\delivery\WebRequest;
7
use watoki\deli\Path;
8
use watoki\deli\Request;
9
10
class IndexResource extends Container {
11
12
    /**
13
     * @param Request|WebRequest $request
14
     * @return \watoki\curir\delivery\WebResponse
15
     */
16
    public function respond(Request $request) {
17
        $request = $request
18
            ->withTarget(Path::fromString('execute'))
19
            ->withArgument(ExecuteResource::ACTION_ARG, $request->getTarget()->toString());
20
        return parent::respond($request);
21
    }
22
}