Completed
Push — 1.4-refresh-behat-guide ( 91413d )
by Kamil
35:26
created
src/Sylius/Component/Grid/Data/DataSourceInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -20,9 +20,15 @@
 block discarded – undo
20 20
     public const CONDITION_AND = 'and';
21 21
     public const CONDITION_OR = 'or';
22 22
 
23
+    /**
24
+     * @return void
25
+     */
23 26
     public function restrict($expression, string $condition = self::CONDITION_AND): void;
24 27
 
25 28
     public function getExpressionBuilder(): ExpressionBuilderInterface;
26 29
 
30
+    /**
31
+     * @return \Pagerfanta\Pagerfanta
32
+     */
27 33
     public function getData(Parameters $parameters);
28 34
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Data/ExpressionBuilderInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -33,10 +33,16 @@
 block discarded – undo
33 33
 
34 34
     public function lessThan(string $field, $value);
35 35
 
36
+    /**
37
+     * @param string $value
38
+     */
36 39
     public function lessThanOrEqual(string $field, $value);
37 40
 
38 41
     public function greaterThan(string $field, $value);
39 42
 
43
+    /**
44
+     * @param string $value
45
+     */
40 46
     public function greaterThanOrEqual(string $field, $value);
41 47
 
42 48
     public function in(string $field, array $values);
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/FieldTypes/FieldTypeInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -26,6 +26,7 @@
 block discarded – undo
26 26
 
27 27
     /**
28 28
      * Configure options for this field type.
29
+     * @return void
29 30
      */
30 31
     public function configureOptions(OptionsResolver $resolver): void;
31 32
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Filter/DateFilter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
52 52
         }
53 53
     }
54 54
 
55
+    /**
56
+     * @param string|boolean $default
57
+     */
55 58
     private function getOption(array $options, string $name, $default)
56 59
     {
57 60
         return $options[$name] ?? $default;
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Filtering/FilterInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface FilterInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function apply(DataSourceInterface $dataSource, string $name, $data, array $options): void;
21 24
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Filtering/FiltersApplicatorInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,5 +19,8 @@
 block discarded – undo
19 19
 
20 20
 interface FiltersApplicatorInterface
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function apply(DataSourceInterface $dataSource, Grid $grid, Parameters $parameters): void;
23 26
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Renderer/GridRendererInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -20,14 +20,21 @@
 block discarded – undo
20 20
 
21 21
 interface GridRendererInterface
22 22
 {
23
+    /**
24
+     * @return string
25
+     */
23 26
     public function render(GridViewInterface $gridView, ?string $template = null);
24 27
 
25 28
     public function renderField(GridViewInterface $gridView, Field $field, $data);
26 29
 
27 30
     /**
28 31
      * @param mixed|null $data
32
+     * @return string
29 33
      */
30 34
     public function renderAction(GridViewInterface $gridView, Action $action, $data = null);
31 35
 
36
+    /**
37
+     * @return string
38
+     */
32 39
     public function renderFilter(GridViewInterface $gridView, Filter $filter);
33 40
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Sorting/SorterInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,5 +19,8 @@
 block discarded – undo
19 19
 
20 20
 interface SorterInterface
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function sort(DataSourceInterface $dataSource, Grid $grid, Parameters $parameters): void;
23 26
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Inventory/Model/StockableInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -19,15 +19,30 @@
 block discarded – undo
19 19
 
20 20
     public function isInStock(): bool;
21 21
 
22
+    /**
23
+     * @return integer
24
+     */
22 25
     public function getOnHold(): ?int;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function setOnHold(?int $onHold): void;
25 31
 
32
+    /**
33
+     * @return integer
34
+     */
26 35
     public function getOnHand(): ?int;
27 36
 
37
+    /**
38
+     * @return void
39
+     */
28 40
     public function setOnHand(?int $onHand): void;
29 41
 
30 42
     public function isTracked(): bool;
31 43
 
44
+    /**
45
+     * @return void
46
+     */
32 47
     public function setTracked(bool $tracked): void;
33 48
 }
Please login to merge, or discard this patch.