Test Failed
Push — master ( ecae19...f3c0e1 )
by Iman
05:24
created

DTO::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Imanghafoori\Middlewarize;
4
5
class DTO
6
{
7
    private $middleware;
8
9
    private $params;
10
11
    /**
12
     * DTO constructor.
13
     *
14
     * @param $middleware
15
     * @param $params
16
     */
17
    public function __construct($middleware, $params)
18
    {
19
        $this->middleware = $middleware;
20
        $this->params = $params;
21
    }
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getMiddleware()
27
    {
28
        return $this->middleware;
29
    }
30
31
    /**
32
     * @return mixed
33
     */
34
    public function getParams()
35
    {
36
        return $this->params;
37
    }
38
}