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...
23
}
24
25
132
return $this->id;
26
}
27
28
/**
29
* Set the Id of the widget.
30
*
31
* @param string $value
32
*
33
* @return $this
34
*/
35
1
public function setId(string $value): self
36
{
37
1
$this->id = $value;
38
39
1
return $this;
40
}
41
42
/**
43
* Counter used to generate {@see id} for widgets.
44
*
45
* @param int $value
46
*/
47
132
public static function counter(int $value): void
48
{
49
132
self::$counter = $value;
50
132
}
51
52
/**
53
* The prefix to the automatically generated widget IDs.
54
*
55
* @param string $value
56
*
57
* {@see getId()}
58
*/
59
1
public static function autoIdPrefix(string $value): void