Completed
Push — master ( 558213...ef208d )
by Tim
02:11
created

OptionRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSorting() 0 4 1
A setSorting() 0 4 1
1
<?php
2
3
/**
4
 * OptionRequest
5
 */
6
7
namespace HDNET\Calendarize\Domain\Model\Request;
8
9
use HDNET\Calendarize\Domain\Model\AbstractModel;
10
11
/**
12
 * OptionRequest
13
 */
14
class OptionRequest extends AbstractModel
15
{
16
17
    /**
18
     * Sorting
19
     *
20
     * @var string
21
     */
22
    protected $sorting = 'start_date';
23
24
    /**
25
     * @return string
26
     */
27
    public function getSorting(): string
28
    {
29
        return $this->sorting;
30
    }
31
32
    /**
33
     * @param string $sorting
34
     */
35
    public function setSorting(string $sorting): void
36
    {
37
        $this->sorting = $sorting;
38
    }
39
40
}
41