Completed
Pull Request — master (#6259)
by Jordi Sala
03:06
created
src/Filter/FilterInterface.php 1 patch
Doc Comments   +13 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * Returns the filter name.
42
+     * @return string
42 43
      */
43 44
     public function getName(): ?string;
44 45
 
@@ -52,6 +53,9 @@  discard block
 block discarded – undo
52 53
      */
53 54
     public function getLabel(): ?string;
54 55
 
56
+    /**
57
+     * @return void
58
+     */
55 59
     public function setLabel(string $label): void;
56 60
 
57 61
     /**
@@ -60,19 +64,21 @@  discard block
 block discarded – undo
60 64
     public function getDefaultOptions(): array;
61 65
 
62 66
     /**
63
-     * @param mixed|null $default
67
+     * @param boolean $default
64 68
      *
65 69
      * @return mixed
66 70
      */
67 71
     public function getOption(string $name, $default = null);
68 72
 
69 73
     /**
70
-     * @param mixed $value
74
+     * @param boolean $value
75
+     * @return void
71 76
      */
72 77
     public function setOption(string $name, $value): void;
73 78
 
74 79
     /**
75 80
      * @param array<string, mixed> $options
81
+     * @return void
76 82
      */
77 83
     public function initialize(string $name, array $options = []): void;
78 84
 
@@ -111,6 +117,7 @@  discard block
 block discarded – undo
111 117
      * Set field option.
112 118
      *
113 119
      * @param mixed $value
120
+     * @return void
114 121
      */
115 122
     public function setFieldOption(string $name, $value): void;
116 123
 
@@ -130,9 +137,13 @@  discard block
 block discarded – undo
130 137
 
131 138
     /**
132 139
      * Set the condition to use with the left side of the query : OR or AND.
140
+     * @return void
133 141
      */
134 142
     public function setCondition(string $condition): void;
135 143
 
144
+    /**
145
+     * @return string|null
146
+     */
136 147
     public function getCondition(): ?string;
137 148
 
138 149
     public function getTranslationDomain(): ?string;
Please login to merge, or discard this patch.
src/Filter/Persister/FilterPersisterInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -41,11 +41,13 @@
 block discarded – undo
41 41
      *     "_per_page" => {int count rows per page}
42 42
      *
43 43
      * @param array<string, int|string|array{type: int, value: mixed}> $filters
44
+     * @return void
44 45
      */
45 46
     public function set(string $adminCode, array $filters): void;
46 47
 
47 48
     /**
48 49
      * Reset persisted filters for given admin.
50
+     * @return void
49 51
      */
50 52
     public function reset(string $adminCode): void;
51 53
 }
Please login to merge, or discard this patch.