protected function createUpgrade($metaData)
    {
        $this->ensureHomePath($metaData);
        if (!$metaData->has(UpgradeTask::SETTING_DATA_DIR)) {
            $metaData->set(UpgradeTask::SETTING_DATA_DIR, $this->home->tensideDataDir());
        }
        return new UpgradeTask($metaData);
    }
protected function createUpgrade($metaData)
    {
        $this->ensureHomePath($metaData);
        if (!$metaData->has(UpgradeTask::SETTING_DATA_DIR)) {
            $metaData->set(UpgradeTask::SETTING_DATA_DIR, $this->home->tensideDataDir());
        }
        return new UpgradeTask($metaData);
    }
protected function createUpgrade ( $ metaData ) { $ this -> ensureHomePath ( $ metaData ) ; if ( ! $ metaData -> has ( UpgradeTask :: SETTING_DATA_DIR ) ) { $ metaData -> set ( UpgradeTask :: SETTING_DATA_DIR , $ this -> home -> tensideDataDir ( ) ) ; } return new UpgradeTask ( $ metaData ) ; }
Create an upgrade task instance.

@param JsonArray $metaData The meta data for the task.

@return UpgradeTask
Create an upgrade task instance .