We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e768bec commit fa190bbCopy full SHA for fa190bb
src/Widgets/TreeView/Item.php
@@ -25,7 +25,7 @@ class Item
25
/**
26
* @param string[] $values
27
*/
28
- public function __construct(array $values = [], array $options = [])
+ final public function __construct(array $values = [], array $options = [])
29
{
30
$this->options = $this->createOptions()->mergeAsArray($options + [
31
'values' => $values,
@@ -75,4 +75,9 @@ public function options(): Options
75
76
return $this->options;
77
}
78
+
79
+ public static function values(array $values): static
80
+ {
81
+ return new static($values);
82
+ }
83
0 commit comments