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.
The expression return $this->title could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
43
}
44
45
public function setTitle(string $title): self
46
{
47
$this->title = $title;
48
49
return $this;
50
}
51
52
/**
53
* Resource identifier.
54
*/
55
public function getResourceIdentifier(): int
56
{
57
return $this->getId();
58
}
59
60
public function getResourceName(): string
61
{
62
return $this->getTitle();
63
}
64
65
public function setResourceName(string $name): self