Completed
Push — master ( 6acfe1...0042b2 )
by Radu
11:51 queued 10s
created

Route::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WebServCo\Framework\Objects;
6
7
final class Route
8
{
9
    public string $class;
10
11
    public string $method;
12
13
    /**
14
    * Arguments.
15
    *
16
    * @var array<int,string>
17
    */
18
    public array $arguments;
19
20
    /**
21
    * @param array<int,string> $arguments
22
    */
23
    public function __construct(string $class, string $method, array $arguments)
24
    {
25
        $this->class = $class;
26
        $this->method = $method;
27
        $this->arguments = $arguments;
28
    }
29
}
30