moduleDirReader = $reader; $this->moduleName = $moduleName; $this->schema = $schema; $this->perFileSchema = $perFileSchema; } /** * Get path to merged config schema * * @return string|null */ public function getSchema() { return $this->moduleDirReader->getModuleDir(Dir::MODULE_ETC_DIR, $this->moduleName) . '/' . $this->schema; } /** * Get path to per file validation schema * * @return string|null */ public function getPerFileSchema() { if ($this->perFileSchema !== null) { return $this->moduleDirReader->getModuleDir(Dir::MODULE_ETC_DIR, $this->moduleName) . '/' . $this->perFileSchema; } } }