Completed
Push — master ( af07f3...e65873 )
by Tim
44:04
created

OptionRequest::getDirection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
     * Direction
26
     *
27
     * @var string
28
     */
29
    protected $direction = 'asc';
30
31
    /**
32
     * @return array
33
     */
34
    public function __sleep()
35
    {
36
        return ['sorting', 'direction'];
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getSorting()
43
    {
44
        return $this->sorting;
45
    }
46
47
    /**
48
     * @param string $sorting
49
     */
50
    public function setSorting($sorting)
51
    {
52
        $this->sorting = $sorting;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getDirection()
59
    {
60
        return $this->direction;
61
    }
62
63
    /**
64
     * @param string $direction
65
     */
66
    public function setDirection($direction)
67
    {
68
        $this->direction = $direction;
69
    }
70
71
72
}
73