()
| 41 | } |
| 42 | |
| 43 | public function get_state() { |
| 44 | $list = array(); |
| 45 | |
| 46 | foreach ($this->state as $key => $value) { |
| 47 | $clone = json_decode($key); |
| 48 | $i = 0; |
| 49 | while ($i < $value) { |
| 50 | $list[] = $clone; |
| 51 | $i++; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | return $list; |
| 56 | } |
| 57 | |
| 58 | public function validate($timestamp) { |
| 59 | if (!$this->valid) { |