1 | <?php |
||
11 | class Achievement extends AbstractModel |
||
12 | { |
||
13 | const TYPE_POINTS = 'points'; |
||
14 | const TYPE_LEVEL = 'level'; |
||
15 | const TYPE_BADGE = 'badges'; // In singular for consistency |
||
16 | const TYPE_QUEST = 'quest'; |
||
17 | |||
18 | /** |
||
19 | * Just an allias for TYPE_BADGE. This will be removed at some point if the public API is updated |
||
20 | * @deprecated Use TYPE_BADGE constant instead. |
||
21 | */ |
||
22 | const TYPE_BADGES = 'badges'; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | * @JMS\Type("string") |
||
27 | */ |
||
28 | private $type; |
||
29 | /** |
||
30 | * @var int |
||
31 | * @JMS\Type("integer") |
||
32 | */ |
||
33 | private $value; |
||
34 | |||
35 | /** |
||
36 | * @return mixed |
||
37 | */ |
||
38 | 2 | public function getType() |
|
42 | |||
43 | /** |
||
44 | * @param mixed $type |
||
45 | * @return $this |
||
46 | */ |
||
47 | 1 | public function setType($type) |
|
52 | |||
53 | /** |
||
54 | * @return int |
||
55 | */ |
||
56 | 2 | public function getValue() |
|
60 | |||
61 | /** |
||
62 | * @param int $value |
||
63 | * @return $this |
||
64 | */ |
||
65 | 1 | public function setValue($value) |
|
70 | |||
71 | /** |
||
72 | * Returns the list of valid types |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | 2 | public static function getAllTypesList() |
|
80 | } |
||
81 |