File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -29,23 +29,29 @@ class Filter
29
29
public array $ options = [];
30
30
31
31
/**
32
- * Filter constructor.
33
- *
34
- * @param string $name
32
+ * @var array
33
+ */
34
+ public array $ attributes = [];
35
+
36
+ /**
37
+ * @param string $name
38
+ * @param array|null $attributes
35
39
*/
36
- public function __construct (string $ name )
40
+ public function __construct (string $ name, ? array $ attributes = [] )
37
41
{
38
42
$ this ->name = $ name ;
43
+ $ this ->attributes = $ attributes ;
39
44
}
40
45
41
46
/**
42
- * @param string $name
47
+ * @param string $name
48
+ * @param array|null $attributes
43
49
*
44
50
* @return Filter
45
51
*/
46
- public static function make (string $ name ): Filter
52
+ public static function make (string $ name, ? array $ attributes = [] ): Filter
47
53
{
48
- return new static ($ name );
54
+ return new static ($ name, $ attributes );
49
55
}
50
56
51
57
/**
You can’t perform that action at this time.
0 commit comments