Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function __construct(string $controllerAction, ?string $id, ?string $add, ?array $query = null, bool $encode = false) |
||
31 | { |
||
32 | $controllerAction = Str::lowerCase(trim($controllerAction, '/')); |
||
33 | [$controller, $action] = explode('/', $controllerAction); |
||
34 | |||
35 | $this->controller = $controller; |
||
36 | $this->action = $action; |
||
37 | $this->id = $id; |
||
38 | $this->add = $add; |
||
39 | $this->query = $query; |
||
40 | $this->encode = $encode; |
||
41 | } |
||
63 | } |