description = $gitImageRepository->getDescription(); } public function createOrUpdateEntity(?GitImageRepository $gitImageRepository = null): GitImageRepository { if (!$gitImageRepository) { $gitImageRepository = new GitImageRepository(); } $gitImageRepository->setDescription($this->description); return $gitImageRepository; } }