The expression return $this->getId() 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...
37
}
38
39
public function getId(): ?int
40
{
41
return $this->id;
42
}
43
44
public function getResourceName(): string
45
{
46
return $this->getTitle();
47
}
48
49
public function getTitle(): string
50
{
51
return $this->title;
52
}
53
54
public function setTitle(string $title): self
55
{
56
$this->title = $title;
57
58
return $this;
59
}
60
61
public function setResourceName(string $name): self