public function getCurrentPlatformState()
    {
        $data = json_decode($this->getDriver()->get(self::PREFIX . self::LAST_MODE), true);
        if (! $data) {
            throw new \common_exception_NotFound();
        }
        return new MaintenanceState($data);
    }
public function getCurrentPlatformState()
    {
        $data = json_decode($this->getDriver()->get(self::PREFIX . self::LAST_MODE), true);
        if (! $data) {
            throw new \common_exception_NotFound();
        }
        return new MaintenanceState($data);
    }
public function getCurrentPlatformState ( ) { $ data = json_decode ( $ this -> getDriver ( ) -> get ( self :: PREFIX . self :: LAST_MODE ) , true ) ; if ( ! $ data ) { throw new \ common_exception_NotFound ( ) ; } return new MaintenanceState ( $ data ) ; }
Get the current state of the platform

@return MaintenanceState
@throws \common_exception_NotFound If no state is set
Get the current state of the platform