The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
Loading history...
43
{
44
return $this->type;
45
}
46
47
public function getHref(): string
48
{
49
return $this->href;
50
}
51
52
/**
53
* @return string[]
54
*/
55
public function getTitles(): array
56
{
57
return $this->titles;
58
}
59
60
public function addTitle(string $tag, string $title): void
61
{
62
$this->titles[$tag] = $title;
63
}
64
65
/**
66
* @return string[]
67
*/
68
public function getProperties(): array
69
{
70
return $this->properties;
71
}
72
73
public function addProperty(string $key, string $property): void
74
{
75
$this->properties[$key] = $property;
76
}
77
78
public function jsonSerialize()
79
{
80
$result = [
81
'rel' => $this->rel,
82
];
83
84
foreach (['type', 'href', 'titles', 'properties'] as $property) {
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.