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

DTO   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMiddleware() 0 4 1
A getParams() 0 4 1
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
}