Completed
Push — 1.4-user-interface-entity-mapp... ( 8eba19...bbc1f0 )
by Kamil
19:43 queued 07:23
created
src/Sylius/Component/Customer/Model/CustomerAwareInterface.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 CustomerAwareInterface
17 17
 {
18
+    /**
19
+     * @return null|CustomerInterface
20
+     */
18 21
     public function getCustomer(): ?CustomerInterface;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setCustomer(?CustomerInterface $customer): void;
21 27
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Customer/Model/CustomerGroupInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -18,7 +18,13 @@
 block discarded – undo
18 18
 
19 19
 interface CustomerGroupInterface extends ResourceInterface, CodeAwareInterface
20 20
 {
21
+    /**
22
+     * @return string
23
+     */
21 24
     public function getName(): ?string;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function setName(?string $name): void;
24 30
 }
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
@@ -22,35 +22,64 @@  discard block
 block discarded – undo
22 22
     public const MALE_GENDER = 'm';
23 23
     public const FEMALE_GENDER = 'f';
24 24
 
25
+    /**
26
+     * @return string|null
27
+     */
25 28
     public function getEmail(): ?string;
26 29
 
30
+    /**
31
+     * @return void
32
+     */
27 33
     public function setEmail(?string $email): void;
28 34
 
29 35
     /**
30 36
      * Gets normalized email (should be used in search and sort queries).
37
+     * @return string|null
31 38
      */
32 39
     public function getEmailCanonical(): ?string;
33 40
 
41
+    /**
42
+     * @return void
43
+     */
34 44
     public function setEmailCanonical(?string $emailCanonical): void;
35 45
 
36 46
     public function getFullName(): string;
37 47
 
48
+    /**
49
+     * @return string|null
50
+     */
38 51
     public function getFirstName(): ?string;
39 52
 
53
+    /**
54
+     * @return void
55
+     */
40 56
     public function setFirstName(?string $firstName): void;
41 57
 
58
+    /**
59
+     * @return string|null
60
+     */
42 61
     public function getLastName(): ?string;
43 62
 
63
+    /**
64
+     * @return void
65
+     */
44 66
     public function setLastName(?string $lastName): void;
45 67
 
68
+    /**
69
+     * @return \DateTimeInterface|null
70
+     */
46 71
     public function getBirthday(): ?\DateTimeInterface;
47 72
 
73
+    /**
74
+     * @return void
75
+     */
48 76
     public function setBirthday(?\DateTimeInterface $birthday): void;
49 77
 
50 78
     public function getGender(): string;
51 79
 
52 80
     /**
53 81
      * You should use interface constants for that.
82
+     * @return void
54 83
      */
55 84
     public function setGender(string $gender): void;
56 85
 
@@ -58,15 +87,30 @@  discard block
 block discarded – undo
58 87
 
59 88
     public function isFemale(): bool;
60 89
 
90
+    /**
91
+     * @return CustomerGroupInterface|null
92
+     */
61 93
     public function getGroup(): ?CustomerGroupInterface;
62 94
 
95
+    /**
96
+     * @return void
97
+     */
63 98
     public function setGroup(?CustomerGroupInterface $group): void;
64 99
 
100
+    /**
101
+     * @return string|null
102
+     */
65 103
     public function getPhoneNumber(): ?string;
66 104
 
105
+    /**
106
+     * @return void
107
+     */
67 108
     public function setPhoneNumber(?string $phoneNumber): void;
68 109
 
69 110
     public function isSubscribedToNewsletter(): bool;
70 111
 
112
+    /**
113
+     * @return void
114
+     */
71 115
     public function setSubscribedToNewsletter(bool $subscribedToNewsletter): void;
72 116
 }
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.
src/Sylius/Component/Locale/Model/LocaleInterface.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 LocaleInterface extends ResourceInterface, CodeAwareInterface, TimestampableInterface
21 21
 {
22
+    /**
23
+     * @return string|null
24
+     */
22 25
     public function getName(?string $locale = null): ?string;
23 26
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Locale/Model/LocalesAwareInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -24,7 +24,13 @@
 block discarded – undo
24 24
 
25 25
     public function hasLocale(LocaleInterface $locale): bool;
26 26
 
27
+    /**
28
+     * @return void
29
+     */
27 30
     public function addLocale(LocaleInterface $locale): void;
28 31
 
32
+    /**
33
+     * @return void
34
+     */
29 35
     public function removeLocale(LocaleInterface $locale): void;
30 36
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/AdjustableInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -22,16 +22,26 @@
 block discarded – undo
22 22
      */
23 23
     public function getAdjustments(?string $type = null): Collection;
24 24
 
25
+    /**
26
+     * @return void
27
+     */
25 28
     public function addAdjustment(AdjustmentInterface $adjustment): void;
26 29
 
30
+    /**
31
+     * @return void
32
+     */
27 33
     public function removeAdjustment(AdjustmentInterface $adjustment): void;
28 34
 
29 35
     public function getAdjustmentsTotal(?string $type = null): int;
30 36
 
37
+    /**
38
+     * @return void
39
+     */
31 40
     public function removeAdjustments(?string $type = null): void;
32 41
 
33 42
     /**
34 43
      * Recalculates adjustments total. Should be used after adjustment change.
44
+     * @return void
35 45
      */
36 46
     public function recalculateAdjustmentsTotal(): void;
37 47
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/AdjustmentInterface.php 1 patch
Doc Comments   +33 added lines patch added patch discarded remove patch
@@ -20,28 +20,55 @@  discard block
 block discarded – undo
20 20
 {
21 21
     public function getAdjustable(): ?AdjustableInterface;
22 22
 
23
+    /**
24
+     * @return void
25
+     */
23 26
     public function setAdjustable(?AdjustableInterface $adjustable): void;
24 27
 
28
+    /**
29
+     * @return string|null
30
+     */
25 31
     public function getType(): ?string;
26 32
 
33
+    /**
34
+     * @return void
35
+     */
27 36
     public function setType(?string $type): void;
28 37
 
38
+    /**
39
+     * @return string|null
40
+     */
29 41
     public function getLabel(): ?string;
30 42
 
43
+    /**
44
+     * @return void
45
+     */
31 46
     public function setLabel(?string $label): void;
32 47
 
33 48
     public function getAmount(): int;
34 49
 
50
+    /**
51
+     * @return void
52
+     */
35 53
     public function setAmount(int $amount): void;
36 54
 
37 55
     public function isNeutral(): bool;
38 56
 
57
+    /**
58
+     * @return void
59
+     */
39 60
     public function setNeutral(bool $neutral): void;
40 61
 
41 62
     public function isLocked(): bool;
42 63
 
64
+    /**
65
+     * @return void
66
+     */
43 67
     public function lock(): void;
44 68
 
69
+    /**
70
+     * @return void
71
+     */
45 72
     public function unlock(): void;
46 73
 
47 74
     /**
@@ -54,7 +81,13 @@  discard block
 block discarded – undo
54 81
      */
55 82
     public function isCredit(): bool;
56 83
 
84
+    /**
85
+     * @return string|null
86
+     */
57 87
     public function getOriginCode(): ?string;
58 88
 
89
+    /**
90
+     * @return void
91
+     */
59 92
     public function setOriginCode(?string $originCode): void;
60 93
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderAwareInterface.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 OrderAwareInterface
17 17
 {
18
+    /**
19
+     * @return OrderInterface|null
20
+     */
18 21
     public function getOrder(): ?OrderInterface;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setOrder(?OrderInterface $order): void;
21 27
 }
Please login to merge, or discard this patch.