Completed
Push — docs-unified-api-section ( 191e4f...d674e9 )
by Kamil
10:53 queued 04:48
created
src/Sylius/Behat/Page/Admin/ProductVariant/UpdatePageInterface.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -19,8 +19,14 @@  discard block
 block discarded – undo
19 19
 
20 20
 interface UpdatePageInterface extends BaseUpdatePageInterface
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function disableTracking(): void;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function enableTracking(): void;
25 31
 
26 32
     public function isCodeDisabled(): bool;
@@ -39,15 +45,30 @@  discard block
 block discarded – undo
39 45
 
40 46
     public function getNameInLanguage(string $language): string;
41 47
 
48
+    /**
49
+     * @return void
50
+     */
42 51
     public function selectOption(string $optionName, string $optionValue): void;
43 52
 
44 53
     public function isShowInShopButtonDisabled(): bool;
45 54
 
55
+    /**
56
+     * @return void
57
+     */
46 58
     public function showProductInChannel(string $channel): void;
47 59
 
60
+    /**
61
+     * @return void
62
+     */
48 63
     public function showProductInSingleChannel(): void;
49 64
 
65
+    /**
66
+     * @return void
67
+     */
50 68
     public function specifyCurrentStock(int $amount): void;
51 69
 
70
+    /**
71
+     * @return void
72
+     */
52 73
     public function specifyPrice(int $price): void;
53 74
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/OrderContext.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -126,6 +126,7 @@
 block discarded – undo
126 126
      * @Given a customer :customer placed an order :orderNumber
127 127
      * @Given the customer :customer has already placed an order :orderNumber
128 128
      * @Given there is a customer :customer that placed an order :orderNumber in channel :channel
129
+     * @param string $orderNumber
129 130
      */
130 131
     public function thereIsCustomerThatPlacedOrder(CustomerInterface $customer, $orderNumber = null, $channel = null)
131 132
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Crud/IndexPageInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -24,19 +24,37 @@
 block discarded – undo
24 24
 
25 25
     public function getColumnFields(string $columnName): array;
26 26
 
27
+    /**
28
+     * @return void
29
+     */
27 30
     public function sortBy(string $fieldName): void;
28 31
 
32
+    /**
33
+     * @return void
34
+     */
29 35
     public function deleteResourceOnPage(array $parameters): void;
30 36
 
31 37
     public function getActionsForResource(array $parameters): NodeElement;
32 38
 
39
+    /**
40
+     * @return void
41
+     */
33 42
     public function checkResourceOnPage(array $parameters): void;
34 43
 
35 44
     public function countItems(): int;
36 45
 
46
+    /**
47
+     * @return void
48
+     */
37 49
     public function filter(): void;
38 50
 
51
+    /**
52
+     * @return void
53
+     */
39 54
     public function bulkDelete(): void;
40 55
 
56
+    /**
57
+     * @return void
58
+     */
41 59
     public function sort(string $order): void;
42 60
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Customer/Model/CustomerInterface.php 1 patch
Doc Comments   +44 added lines patch added patch discarded remove patch
@@ -24,35 +24,64 @@  discard block
 block discarded – undo
24 24
 
25 25
     public const FEMALE_GENDER = 'f';
26 26
 
27
+    /**
28
+     * @return string|null
29
+     */
27 30
     public function getEmail(): ?string;
28 31
 
32
+    /**
33
+     * @return void
34
+     */
29 35
     public function setEmail(?string $email): void;
30 36
 
31 37
     /**
32 38
      * Gets normalized email (should be used in search and sort queries).
39
+     * @return string|null
33 40
      */
34 41
     public function getEmailCanonical(): ?string;
35 42
 
43
+    /**
44
+     * @return void
45
+     */
36 46
     public function setEmailCanonical(?string $emailCanonical): void;
37 47
 
38 48
     public function getFullName(): string;
39 49
 
50
+    /**
51
+     * @return string|null
52
+     */
40 53
     public function getFirstName(): ?string;
41 54
 
55
+    /**
56
+     * @return void
57
+     */
42 58
     public function setFirstName(?string $firstName): void;
43 59
 
60
+    /**
61
+     * @return string|null
62
+     */
44 63
     public function getLastName(): ?string;
45 64
 
65
+    /**
66
+     * @return void
67
+     */
46 68
     public function setLastName(?string $lastName): void;
47 69
 
70
+    /**
71
+     * @return \DateTimeInterface|null
72
+     */
48 73
     public function getBirthday(): ?\DateTimeInterface;
49 74
 
75
+    /**
76
+     * @return void
77
+     */
50 78
     public function setBirthday(?\DateTimeInterface $birthday): void;
51 79
 
52 80
     public function getGender(): string;
53 81
 
54 82
     /**
55 83
      * You should use interface constants for that.
84
+     * @return void
56 85
      */
57 86
     public function setGender(string $gender): void;
58 87
 
@@ -60,15 +89,30 @@  discard block
 block discarded – undo
60 89
 
61 90
     public function isFemale(): bool;
62 91
 
92
+    /**
93
+     * @return CustomerGroupInterface|null
94
+     */
63 95
     public function getGroup(): ?CustomerGroupInterface;
64 96
 
97
+    /**
98
+     * @return void
99
+     */
65 100
     public function setGroup(?CustomerGroupInterface $group): void;
66 101
 
102
+    /**
103
+     * @return string|null
104
+     */
67 105
     public function getPhoneNumber(): ?string;
68 106
 
107
+    /**
108
+     * @return void
109
+     */
69 110
     public function setPhoneNumber(?string $phoneNumber): void;
70 111
 
71 112
     public function isSubscribedToNewsletter(): bool;
72 113
 
114
+    /**
115
+     * @return void
116
+     */
73 117
     public function setSubscribedToNewsletter(bool $subscribedToNewsletter): void;
74 118
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Payment/IndexPageInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -17,15 +17,27 @@
 block discarded – undo
17 17
 
18 18
 interface IndexPageInterface extends BaseIndexPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function chooseStateToFilter(string $paymentState): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function completePaymentOfOrderWithNumber(string $orderNumber): void;
23 29
 
24 30
     public function getPaymentStateByOrderNumber(string $orderNumber): string;
25 31
 
26 32
     public function isPaymentWithOrderNumberInPosition(string $orderNumber, int $position): bool;
27 33
 
34
+    /**
35
+     * @return void
36
+     */
28 37
     public function showOrderPageForNthPayment(int $position): void;
29 38
 
39
+    /**
40
+     * @return void
41
+     */
30 42
     public function chooseChannelFilter(string $channelName): void;
31 43
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/ShowPageInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -24,11 +24,23 @@
 block discarded – undo
24 24
 
25 25
     public function isShowInShopButtonDisabled(): bool;
26 26
 
27
+    /**
28
+     * @return void
29
+     */
27 30
     public function showProductInChannel(string $channel): void;
28 31
 
32
+    /**
33
+     * @return void
34
+     */
29 35
     public function showProductInSingleChannel(): void;
30 36
 
37
+    /**
38
+     * @return void
39
+     */
31 40
     public function showProductEditPage(): void;
32 41
 
42
+    /**
43
+     * @return void
44
+     */
33 45
     public function showVariantEditPage(ProductVariantInterface $variant): void;
34 46
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Review/Model/ReviewInterface.php 1 patch
Doc Comments   +36 added lines patch added patch discarded remove patch
@@ -24,27 +24,63 @@
 block discarded – undo
24 24
 
25 25
     public const STATUS_REJECTED = 'rejected';
26 26
 
27
+    /**
28
+     * @return string
29
+     */
27 30
     public function getTitle(): ?string;
28 31
 
32
+    /**
33
+     * @return void
34
+     */
29 35
     public function setTitle(?string $title): void;
30 36
 
37
+    /**
38
+     * @return integer
39
+     */
31 40
     public function getRating(): ?int;
32 41
 
42
+    /**
43
+     * @return void
44
+     */
33 45
     public function setRating(?int $rating): void;
34 46
 
47
+    /**
48
+     * @return string
49
+     */
35 50
     public function getComment(): ?string;
36 51
 
52
+    /**
53
+     * @return void
54
+     */
37 55
     public function setComment(?string $comment): void;
38 56
 
57
+    /**
58
+     * @return ReviewerInterface
59
+     */
39 60
     public function getAuthor(): ?ReviewerInterface;
40 61
 
62
+    /**
63
+     * @return void
64
+     */
41 65
     public function setAuthor(?ReviewerInterface $author): void;
42 66
 
67
+    /**
68
+     * @return string
69
+     */
43 70
     public function getStatus(): ?string;
44 71
 
72
+    /**
73
+     * @return void
74
+     */
45 75
     public function setStatus(?string $status): void;
46 76
 
77
+    /**
78
+     * @return ReviewableInterface
79
+     */
47 80
     public function getReviewSubject(): ?ReviewableInterface;
48 81
 
82
+    /**
83
+     * @return void
84
+     */
49 85
     public function setReviewSubject(?ReviewableInterface $reviewSubject): void;
50 86
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderInterface.php 1 patch
Doc Comments   +41 added lines patch added patch discarded remove patch
@@ -27,20 +27,43 @@  discard block
 block discarded – undo
27 27
 
28 28
     public const STATE_FULFILLED = 'fulfilled';
29 29
 
30
+    /**
31
+     * @return \DateTimeInterface|null
32
+     */
30 33
     public function getCheckoutCompletedAt(): ?\DateTimeInterface;
31 34
 
35
+    /**
36
+     * @param \DateTimeInterface $checkoutCompletedAt
37
+     *
38
+     * @return void
39
+     */
32 40
     public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void;
33 41
 
34 42
     public function isCheckoutCompleted(): bool;
35 43
 
44
+    /**
45
+     * @return void
46
+     */
36 47
     public function completeCheckout(): void;
37 48
 
49
+    /**
50
+     * @return string|null
51
+     */
38 52
     public function getNumber(): ?string;
39 53
 
54
+    /**
55
+     * @return void
56
+     */
40 57
     public function setNumber(?string $number): void;
41 58
 
59
+    /**
60
+     * @return string|null
61
+     */
42 62
     public function getNotes(): ?string;
43 63
 
64
+    /**
65
+     * @return void
66
+     */
44 67
     public function setNotes(?string $notes): void;
45 68
 
46 69
     /**
@@ -48,18 +71,30 @@  discard block
 block discarded – undo
48 71
      */
49 72
     public function getItems(): Collection;
50 73
 
74
+    /**
75
+     * @return void
76
+     */
51 77
     public function clearItems(): void;
52 78
 
53 79
     public function countItems(): int;
54 80
 
81
+    /**
82
+     * @return void
83
+     */
55 84
     public function addItem(OrderItemInterface $item): void;
56 85
 
86
+    /**
87
+     * @return void
88
+     */
57 89
     public function removeItem(OrderItemInterface $item): void;
58 90
 
59 91
     public function hasItem(OrderItemInterface $item): bool;
60 92
 
61 93
     public function getItemsTotal(): int;
62 94
 
95
+    /**
96
+     * @return void
97
+     */
63 98
     public function recalculateItemsTotal(): void;
64 99
 
65 100
     public function getTotal(): int;
@@ -68,6 +103,9 @@  discard block
 block discarded – undo
68 103
 
69 104
     public function getState(): string;
70 105
 
106
+    /**
107
+     * @return void
108
+     */
71 109
     public function setState(string $state): void;
72 110
 
73 111
     public function isEmpty(): bool;
@@ -79,5 +117,8 @@  discard block
 block discarded – undo
79 117
 
80 118
     public function getAdjustmentsTotalRecursively(?string $type = null): int;
81 119
 
120
+    /**
121
+     * @return void
122
+     */
82 123
     public function removeAdjustmentsRecursively(?string $type = null): void;
83 124
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/Twig/InventoryExtension.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     public function getFunctions(): array
34 34
     {
35 35
         return [
36
-             new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
37
-             new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
36
+                new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
37
+                new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
38 38
         ];
39 39
     }
40 40
 }
Please login to merge, or discard this patch.