1 | <?php |
||
8 | class SurveyFilter |
||
9 | { |
||
10 | /** |
||
11 | * @var \DateTime |
||
12 | * @Assert\Date() |
||
13 | */ |
||
14 | private $start; |
||
15 | |||
16 | /** |
||
17 | * @var \DateTime |
||
18 | * @Assert\Date() |
||
19 | */ |
||
20 | private $end; |
||
21 | |||
22 | /** |
||
23 | * @var SurveyType |
||
24 | * @Assert\Type("object") |
||
25 | * @Assert\Valid |
||
26 | */ |
||
27 | private $type; |
||
28 | |||
29 | /** |
||
30 | * Set start. |
||
31 | * |
||
32 | * @param \DateTime $date |
||
33 | * |
||
34 | * @return SurveyFilter |
||
35 | */ |
||
36 | 1 | public function setStart($date) |
|
42 | |||
43 | /** |
||
44 | * Get start. |
||
45 | * |
||
46 | * @return \DateTime |
||
47 | */ |
||
48 | 1 | public function getStart() |
|
52 | |||
53 | /** |
||
54 | * Set end. |
||
55 | * |
||
56 | * @param \DateTime $date |
||
57 | * |
||
58 | * @return SurveyFilter |
||
59 | */ |
||
60 | 1 | public function setEnd($date) |
|
66 | /** |
||
67 | * Get end. |
||
68 | * |
||
69 | * @return \DateTime |
||
70 | */ |
||
71 | 1 | public function getEnd() |
|
75 | |||
76 | /** |
||
77 | * Set type. |
||
78 | * |
||
79 | * @param SurveyType $type |
||
80 | * |
||
81 | * @return SurveyFilter |
||
82 | */ |
||
83 | 1 | public function setType(SurveyType $type) |
|
89 | |||
90 | /** |
||
91 | * Get type. |
||
92 | * |
||
93 | * @return SurveyType |
||
94 | */ |
||
95 | 1 | public function getType() |
|
99 | } |
||
100 |