Since $counter is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $counter to at least protected.
Loading history...
25
}
26
27
48
return $this->id;
28
}
29
30
/**
31
* Set the Id of the widget.
32
*
33
* @param string $value
34
*
35
* @return $this
36
*/
37
1
public function setId(string $value): self
38
{
39
1
$this->id = $value;
40
41
1
return $this;
42
}
43
44
/**
45
* Counter used to generate {@see id} for widgets.
46
*
47
* @param int $value
48
*/
49
47
public static function counter(int $value): void
50
{
51
47
self::$counter = $value;
52
47
}
53
54
/**
55
* The prefix to the automatically generated widget IDs.
56
*
57
* @param string $value
58
*
59
* {@see getId()}
60
*/
61
public static function autoIdPrefix(string $value): void