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

SortParam::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 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