helperService = $helperService; } public function getModelClass(): string { return Song::class; } public function getOneByPath(string $path): ?Song { /** @var Song|null $song */ $song = $this->getOneById($this->helperService->getFileHash($path)); return $song; } }