IndexResource   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A respond() 0 6 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
}