Skip to content

Commit

Permalink
Merge pull request #71 from monarc-project/feature/remove-db-abstract
Browse files Browse the repository at this point in the history
Fixed the methods type hints
  • Loading branch information
ruslanbaidan authored Oct 2, 2024
2 parents 16aa867 + 4e48391 commit 67eeda8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Entity/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function addAsset(Asset $asset): self
return $this;
}

public function removeAsset(AssetSuperClass $asset): self
public function removeAsset(Asset $asset): self
{
if ($this->assets->contains($asset)) {
$this->assets->removeElement($asset);
Expand All @@ -170,7 +170,7 @@ public function addThreat(Threat $threat): self
return $this;
}

public function removeThreat(ThreatSuperClass $threat): self
public function removeThreat(Threat $threat): self
{
if ($this->threats->contains($threat)) {
$this->threats->removeElement($threat);
Expand All @@ -195,7 +195,7 @@ public function addVulnerability(Vulnerability $vulnerability): self
return $this;
}

public function removeVulnerability(VulnerabilitySuperClass $vulnerability): self
public function removeVulnerability(Vulnerability $vulnerability): self
{
if ($this->vulnerabilities->contains($vulnerability)) {
$this->vulnerabilities->removeElement($vulnerability);
Expand Down

0 comments on commit 67eeda8

Please sign in to comment.