public function getHistory()
    {
        $history = array(
            1 => new MaintenanceState(json_decode($this->getDriver()->get(self::PREFIX . self::LAST_MODE), true))
        );

        $i = 2;
        while ($data = json_decode($this->getDriver()->get(self::PREFIX . $i), true)) {
            $history[$i] = new MaintenanceState($data);
            $i++;
        }
        return $history;
    }
public function getHistory()
    {
        $history = array(
            1 => new MaintenanceState(json_decode($this->getDriver()->get(self::PREFIX . self::LAST_MODE), true))
        );

        $i = 2;
        while ($data = json_decode($this->getDriver()->get(self::PREFIX . $i), true)) {
            $history[$i] = new MaintenanceState($data);
            $i++;
        }
        return $history;
    }
public function getHistory ( ) { $ history = array ( 1 => new MaintenanceState ( json_decode ( $ this -> getDriver ( ) -> get ( self :: PREFIX . self :: LAST_MODE ) , true ) ) ) ; $ i = 2 ; while ( $ data = json_decode ( $ this -> getDriver ( ) -> get ( self :: PREFIX . $ i ) , true ) ) { $ history [ $ i ] = new MaintenanceState ( $ data ) ; $ i ++ ; } return $ history ; }
Get maintenance history as list of state

@todo Return an arrayIterator
@return array
Get maintenance history as list of state