1 | <?php |
||
12 | class Badge extends AbstractModel |
||
13 | { |
||
14 | const TYPE_FIRST_OCCURRENCE = 'first_occurrence'; |
||
15 | const TYPE_REPETITION = 'repetition'; |
||
16 | const TYPE_CONSECUTIVE_DAYS = 'consecutive_days'; |
||
17 | const TYPE_COMBO = 'combo'; |
||
18 | |||
19 | use WonnovaDateTimeParserTrait; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | * @JMS\Type("string") |
||
24 | */ |
||
25 | private $name; |
||
26 | /** |
||
27 | * @var string |
||
28 | * @JMS\Type("string") |
||
29 | */ |
||
30 | private $description; |
||
31 | /** |
||
32 | * @var string |
||
33 | * @JMS\Type("string") |
||
34 | */ |
||
35 | private $imageUrl; |
||
36 | /** |
||
37 | * @var string |
||
38 | * @JMS\Type("string") |
||
39 | */ |
||
40 | private $type; |
||
41 | /** |
||
42 | * @var \DateTime |
||
43 | * @JMS\Type("WonnovaDateTime") |
||
44 | */ |
||
45 | private $notificationDate; |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | 4 | public function getName() |
|
54 | |||
55 | /** |
||
56 | * @param string $name |
||
57 | * @return $this |
||
58 | */ |
||
59 | 1 | public function setName($name) |
|
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | 2 | public function getDescription() |
|
72 | |||
73 | /** |
||
74 | * @param string $description |
||
75 | * @return $this |
||
76 | */ |
||
77 | 1 | public function setDescription($description) |
|
82 | |||
83 | /** |
||
84 | * @return string |
||
85 | */ |
||
86 | 2 | public function getImageUrl() |
|
90 | |||
91 | /** |
||
92 | * @param string $imageUrl |
||
93 | * @return $this |
||
94 | */ |
||
95 | 1 | public function setImageUrl($imageUrl) |
|
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | 2 | public function getType() |
|
108 | |||
109 | /** |
||
110 | * @param string $type |
||
111 | * @return $this |
||
112 | */ |
||
113 | 1 | public function setType($type) |
|
118 | |||
119 | /** |
||
120 | * @return \DateTime |
||
121 | */ |
||
122 | 2 | public function getNotificationDate() |
|
126 | |||
127 | /** |
||
128 | * @param \DateTime|string $notificationDate |
||
129 | * @return $this |
||
130 | */ |
||
131 | 1 | public function setNotificationDate($notificationDate) |
|
136 | } |
||
137 |