protected function setModuleDirectory($moduleDir) { if (!file_exists($moduleDir)) { throw new RuntimeException('Module does not exist. Use dev:module:create to create it before updating. Stop.'); } $this->moduleDirectory = $moduleDir; }