Completed
Push — psalm-deprecated-classes ( a6dba6...4a7eeb )
by Kamil
04:46
created
src/Sylius/Component/Core/Model/AdminUserInterface.php 1 patch
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -19,19 +19,45 @@
 block discarded – undo
19 19
 {
20 20
     public const DEFAULT_ADMIN_ROLE = 'ROLE_ADMINISTRATION_ACCESS';
21 21
 
22
+    /**
23
+     * @return string
24
+     */
22 25
     public function getFirstName(): ?string;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function setFirstName(?string $firstName): void;
25 31
 
32
+    /**
33
+     * @return string
34
+     */
26 35
     public function getLastName(): ?string;
27 36
 
37
+    /**
38
+     * @return void
39
+     */
28 40
     public function setLastName(?string $lastName): void;
29 41
 
42
+    /**
43
+     * @return string
44
+     */
30 45
     public function getLocaleCode(): ?string;
31 46
 
47
+    /**
48
+     * @return void
49
+     */
32 50
     public function setLocaleCode(?string $code): void;
33 51
 
52
+    /**
53
+     * @return ImageInterface
54
+     */
34 55
     public function getAvatar(): ?ImageInterface;
35 56
 
57
+    /**
58
+     * @param AvatarImage $avatar
59
+     *
60
+     * @return void
61
+     */
36 62
     public function setAvatar(?ImageInterface $avatar);
37 63
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ImageAwareInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,7 +15,13 @@
 block discarded – undo
15 15
 
16 16
 interface ImageAwareInterface
17 17
 {
18
+    /**
19
+     * @return ImageInterface
20
+     */
18 21
     public function getImage(): ?ImageInterface;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setImage(?ImageInterface $image): void;
21 27
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Crud/CreatePageInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @throws ElementNotFoundException
28
+     * @return void
28 29
      */
29 30
     public function create(): void;
30 31
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Crud/UpdatePageInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
      */
29 29
     public function hasResourceValues(array $parameters): bool;
30 30
 
31
+    /**
32
+     * @return void
33
+     */
31 34
     public function saveChanges(): void;
32 35
 
33 36
     public function getMessageInvalidForm(): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/PromotionCoupon/GeneratePageInterface.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -23,17 +23,38 @@
 block discarded – undo
23 23
 
24 24
     public function checkGenerationValidation(string $message): bool;
25 25
 
26
+    /**
27
+     * @return void
28
+     */
26 29
     public function generate(): void;
27 30
 
31
+    /**
32
+     * @return void
33
+     */
28 34
     public function specifyAmount(string $amount): void;
29 35
 
36
+    /**
37
+     * @return void
38
+     */
30 39
     public function specifyCodeLength(string $codeLength): void;
31 40
 
41
+    /**
42
+     * @return void
43
+     */
32 44
     public function setExpiresAt(\DateTimeInterface $date): void;
33 45
 
46
+    /**
47
+     * @return void
48
+     */
34 49
     public function setUsageLimit(int $limit): void;
35 50
 
51
+    /**
52
+     * @return void
53
+     */
36 54
     public function specifyPrefix(string $prefix): void;
37 55
 
56
+    /**
57
+     * @return void
58
+     */
38 59
     public function specifySuffix(string $suffix): void;
39 60
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/PromotionCoupon/IndexPageInterface.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 IndexPageInterface extends BaseIndexPageInterface
19 19
 {
20
+    /**
21
+     * @return \Generator
22
+     */
20 23
     public function getCouponCodes(): iterable;
21 24
 }
Please login to merge, or discard this patch.
Promotion/Generator/PromotionCouponGeneratorInstructionInterface.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -15,30 +15,64 @@
 block discarded – undo
15 15
 
16 16
 interface PromotionCouponGeneratorInstructionInterface
17 17
 {
18
+    /**
19
+     * @return integer
20
+     */
18 21
     public function getAmount(): ?int;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setAmount(?int $amount): void;
21 27
 
28
+    /**
29
+     * @return string|null
30
+     */
22 31
     public function getPrefix(): ?string;
23 32
 
33
+    /**
34
+     * @return void
35
+     */
24 36
     public function setPrefix(?string $prefix): void;
25 37
 
38
+    /**
39
+     * @return integer
40
+     */
26 41
     public function getCodeLength(): ?int;
27 42
 
43
+    /**
44
+     * @return void
45
+     */
28 46
     public function setCodeLength(?int $codeLength): void;
29 47
 
48
+    /**
49
+     * @return string|null
50
+     */
30 51
     public function getSuffix(): ?string;
31 52
 
53
+    /**
54
+     * @return void
55
+     */
32 56
     public function setSuffix(?string $suffix): void;
33 57
 
58
+    /**
59
+     * @return \DateTimeInterface
60
+     */
34 61
     public function getExpiresAt(): ?\DateTimeInterface;
35 62
 
36 63
     /**
37 64
      * @param \DateTimeInterface $expiresAt
65
+     * @return void
38 66
      */
39 67
     public function setExpiresAt(?\DateTimeInterface $expiresAt): void;
40 68
 
69
+    /**
70
+     * @return integer
71
+     */
41 72
     public function getUsageLimit(): ?int;
42 73
 
74
+    /**
75
+     * @return void
76
+     */
43 77
     public function setUsageLimit(int $usageLimit): void;
44 78
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/AttributeSubjectInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -31,13 +31,22 @@
 block discarded – undo
31 31
         ?string $baseLocaleCode = null
32 32
     ): Collection;
33 33
 
34
+    /**
35
+     * @return void
36
+     */
34 37
     public function addAttribute(AttributeValueInterface $attribute): void;
35 38
 
39
+    /**
40
+     * @return void
41
+     */
36 42
     public function removeAttribute(AttributeValueInterface $attribute): void;
37 43
 
38 44
     public function hasAttribute(AttributeValueInterface $attribute): bool;
39 45
 
40 46
     public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): bool;
41 47
 
48
+    /**
49
+     * @param string $localeCode
50
+     */
42 51
     public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): ?AttributeValueInterface;
43 52
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Customer/Model/CustomerAwareInterface.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
     public function getCustomer(): ?CustomerInterface;
19 19
 
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function setCustomer(?CustomerInterface $customer): void;
21 24
 }
Please login to merge, or discard this patch.