source = $source; $this->updateAdvisory($advisory); } public function updateAdvisory(RemoteSecurityAdvisory $advisory): void { $this->remoteId = $advisory->getId(); $this->packageName = $advisory->getPackageName(); $this->title = $advisory->getTitle(); $this->link = $advisory->getLink(); $this->cve = $advisory->getCve(); $this->affectedVersions = $advisory->getAffectedVersions(); } public function getRemoteId(): string { return $this->remoteId; } }