Completed
Branch devel (4fc3ef)
by Marcin
05:51
created

SortParam   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 21
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * Created by Marcin.
4
 * Date: 16.06.2018
5
 * Time: 19:21
6
 */
7
declare(strict_types=1);
8
9
namespace Mrcnpdlk\Lib\UrlSearchParser\Criteria;
10
11
/**
12
 * Class SortParam
13
 */
14
class SortParam
15
{
16
    /**
17
     * @var string
18
     */
19
    public $param;
20
    /**
21
     * @var string
22
     */
23
    public $direction;
24
25
    /**
26
     * SortParam constructor.
27
     *
28
     * @param string $param
29
     * @param string $direction
30
     */
31 2
    public function __construct(string $param, string $direction)
32
    {
33 2
        $this->param     = $param;
34 2
        $this->direction = $direction;
35 2
    }
36
}
37