1 | <?php |
||
21 | trait ReputationChangeTrait |
||
22 | { |
||
23 | /** |
||
24 | * Reputation that changes in a day. |
||
25 | * |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $day; |
||
29 | |||
30 | /** |
||
31 | * Reputation that changes in a month. |
||
32 | * |
||
33 | * @var int |
||
34 | */ |
||
35 | protected $month; |
||
36 | |||
37 | /** |
||
38 | * Reputation that changes in a quarter. |
||
39 | * |
||
40 | * @var int |
||
41 | */ |
||
42 | protected $quarter; |
||
43 | |||
44 | /** |
||
45 | * Reputation that changes in a week. |
||
46 | * |
||
47 | * @var int |
||
48 | */ |
||
49 | protected $week; |
||
50 | |||
51 | /** |
||
52 | * Reputation that changes in a year. |
||
53 | * |
||
54 | * @var int |
||
55 | */ |
||
56 | protected $year; |
||
57 | |||
58 | /** |
||
59 | * Sets reputation that changes in a day. |
||
60 | * |
||
61 | * @param int $day The reputation that changes in a day. |
||
62 | * |
||
63 | * @return $this self Object |
||
64 | */ |
||
65 | public function setReputationChangeDay($day) |
||
71 | |||
72 | /** |
||
73 | * Gets reputation that changes in day. |
||
74 | * |
||
75 | * @return int |
||
76 | */ |
||
77 | public function getReputationChangeDay() |
||
81 | |||
82 | /** |
||
83 | * Sets reputation that changes in a month. |
||
84 | * |
||
85 | * @param int $month The reputation that changes in a month. |
||
86 | * |
||
87 | * @return $this self Object |
||
88 | */ |
||
89 | public function setReputationChangeMonth($month) |
||
95 | |||
96 | /** |
||
97 | * Gets reputation that changes in day. |
||
98 | * |
||
99 | * @return int |
||
100 | */ |
||
101 | public function getReputationChangeMonth() |
||
105 | |||
106 | /** |
||
107 | * Sets reputation that changes in a quarter. |
||
108 | * |
||
109 | * @param int $quarter The reputation that changes in a quarter. |
||
110 | * |
||
111 | * @return $this self Object |
||
112 | */ |
||
113 | public function setReputationChangeQuarter($quarter) |
||
119 | |||
120 | /** |
||
121 | * Gets reputation that changes in day. |
||
122 | * |
||
123 | * @return int |
||
124 | */ |
||
125 | public function getReputationChangeQuarter() |
||
129 | |||
130 | /** |
||
131 | * Sets reputation that changes in a week. |
||
132 | * |
||
133 | * @param int $week The reputation that changes in a week. |
||
134 | * |
||
135 | * @return $this self Object |
||
136 | */ |
||
137 | public function setReputationChangeWeek($week) |
||
143 | |||
144 | /** |
||
145 | * Gets reputation that changes in day. |
||
146 | * |
||
147 | * @return int |
||
148 | */ |
||
149 | public function getReputationChangeWeek() |
||
153 | |||
154 | /** |
||
155 | * Sets reputation that changes in a year. |
||
156 | * |
||
157 | * @param int $year The reputation that changes in a year. |
||
158 | * |
||
159 | * @return $this self Object |
||
160 | */ |
||
161 | public function setReputationChangeYear($year) |
||
167 | |||
168 | /** |
||
169 | * Gets reputation that changes in day. |
||
170 | * |
||
171 | * @return int |
||
172 | */ |
||
173 | public function getReputationChangeYear() |
||
177 | |||
178 | /** |
||
179 | * Loads the variables if the data exist into resource. It works like a constructor. |
||
180 | * |
||
181 | * @param null|mixed[] $resource The resource |
||
182 | */ |
||
183 | protected function loadReputationChange($resource) |
||
191 | } |
||
192 |