The expression return $this->id could return the type null which is incompatible with the type-hinted return integer. Consider adding an additional type-check to rule them out.
Loading history...
49
}
50
51
public function getTitle(): string
52
{
53
return $this->title;
54
}
55
56
public function setTitle(string $title): self
57
{
58
$this->title = $title;
59
60
return $this;
61
}
62
63
/**
64
* @return Collection<int, ResourceNode>
65
*/
66
public function getResourceNodes(): Collection
67
{
68
return $this->resourceNodes;
69
}
70
71
public function setResourceNodes(Collection $resourceNodes): self