@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @param string|null $name |
32 | + * @return void |
|
32 | 33 | */ |
33 | 34 | public function setName(?string $name): void; |
34 | 35 | |
@@ -39,6 +40,7 @@ discard block |
||
39 | 40 | |
40 | 41 | /** |
41 | 42 | * @param string|null $description |
43 | + * @return void |
|
42 | 44 | */ |
43 | 45 | public function setDescription(?string $description): void; |
44 | 46 | } |
@@ -39,8 +39,8 @@ |
||
39 | 39 | public function getFunctions(): array |
40 | 40 | { |
41 | 41 | return [ |
42 | - new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
43 | - new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
42 | + new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
43 | + new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
44 | 44 | ]; |
45 | 45 | } |
46 | 46 | } |
@@ -22,6 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param OutputInterface $output |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function setOutput(OutputInterface $output): void; |
27 | 28 | } |
@@ -25,6 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | /** |
27 | 27 | * @param ArrayNodeDefinition $node |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function buildConfiguration(ArrayNodeDefinition $node): void; |
30 | 31 |
@@ -25,16 +25,19 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param array $configuration |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function add(array $configuration): void; |
30 | 31 | |
31 | 32 | /** |
32 | 33 | * @param string $themeName |
34 | + * @return void |
|
33 | 35 | */ |
34 | 36 | public function remove(string $themeName): void; |
35 | 37 | |
36 | 38 | /** |
37 | 39 | * Clear currently used configurations storage. |
40 | + * @return void |
|
38 | 41 | */ |
39 | 42 | public function clear(): void; |
40 | 43 | } |
@@ -24,6 +24,7 @@ |
||
24 | 24 | * @param ThemeInterface $theme |
25 | 25 | * |
26 | 26 | * @throws CircularDependencyFoundException |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function check(ThemeInterface $theme): void; |
29 | 30 | } |
@@ -24,11 +24,13 @@ |
||
24 | 24 | { |
25 | 25 | /** |
26 | 26 | * @param ReviewableInterface $reviewSubject |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function update(ReviewableInterface $reviewSubject): void; |
29 | 30 | |
30 | 31 | /** |
31 | 32 | * @param ReviewInterface $review |
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | public function updateFromReview(ReviewInterface $review): void; |
34 | 36 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ReviewBundle\Updater; |
15 | 15 | |
16 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
17 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
17 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
18 | 18 | |
19 | 19 | interface ReviewableRatingUpdaterInterface |
20 | 20 | { |
@@ -32,11 +32,13 @@ discard block |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param ReviewInterface $review |
35 | + * @return void |
|
35 | 36 | */ |
36 | 37 | public function addReview(ReviewInterface $review): void; |
37 | 38 | |
38 | 39 | /** |
39 | 40 | * @param ReviewInterface $review |
41 | + * @return void |
|
40 | 42 | */ |
41 | 43 | public function removeReview(ReviewInterface $review): void; |
42 | 44 | |
@@ -47,6 +49,7 @@ discard block |
||
47 | 49 | |
48 | 50 | /** |
49 | 51 | * @param float $averageRating |
52 | + * @return void |
|
50 | 53 | */ |
51 | 54 | public function setAverageRating(float $averageRating): void; |
52 | 55 | } |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @param string|null $title |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | public function setTitle(?string $title): void; |
38 | 39 | |
@@ -43,6 +44,7 @@ discard block |
||
43 | 44 | |
44 | 45 | /** |
45 | 46 | * @param int|null $rating |
47 | + * @return void |
|
46 | 48 | */ |
47 | 49 | public function setRating(?int $rating): void; |
48 | 50 | |
@@ -53,6 +55,7 @@ discard block |
||
53 | 55 | |
54 | 56 | /** |
55 | 57 | * @param string|null $comment |
58 | + * @return void |
|
56 | 59 | */ |
57 | 60 | public function setComment(?string $comment): void; |
58 | 61 | |
@@ -63,6 +66,7 @@ discard block |
||
63 | 66 | |
64 | 67 | /** |
65 | 68 | * @param ReviewerInterface|null $author |
69 | + * @return void |
|
66 | 70 | */ |
67 | 71 | public function setAuthor(?ReviewerInterface $author): void; |
68 | 72 | |
@@ -73,6 +77,7 @@ discard block |
||
73 | 77 | |
74 | 78 | /** |
75 | 79 | * @param string|null $status |
80 | + * @return void |
|
76 | 81 | */ |
77 | 82 | public function setStatus(?string $status): void; |
78 | 83 | |
@@ -83,6 +88,7 @@ discard block |
||
83 | 88 | |
84 | 89 | /** |
85 | 90 | * @param ReviewableInterface|null $reviewSubject |
91 | + * @return void |
|
86 | 92 | */ |
87 | 93 | public function setReviewSubject(?ReviewableInterface $reviewSubject): void; |
88 | 94 | } |