public function getPlatformState()
    {
        try {
            return $this->getStorage()->getCurrentPlatformState();
        } catch (\common_exception_NotFound $e) {
            $this->enablePlatform();
            return new MaintenanceState(
                array(MaintenanceState::STATUS => MaintenanceState::LIVE_MODE)
            );
        }
    }
public function getPlatformState()
    {
        try {
            return $this->getStorage()->getCurrentPlatformState();
        } catch (\common_exception_NotFound $e) {
            $this->enablePlatform();
            return new MaintenanceState(
                array(MaintenanceState::STATUS => MaintenanceState::LIVE_MODE)
            );
        }
    }
public function getPlatformState ( ) { try { return $ this -> getStorage ( ) -> getCurrentPlatformState ( ) ; } catch ( \ common_exception_NotFound $ e ) { $ this -> enablePlatform ( ) ; return new MaintenanceState ( array ( MaintenanceState :: STATUS => MaintenanceState :: LIVE_MODE ) ) ; } }
Get the current maintenance state of the platform

@return MaintenanceState
Get the current maintenance state of the platform