Completed
Push — 1.5 ( f57b26...777ecf )
by Kamil
22:24
created
src/Sylius/Component/Attribute/Model/AttributeValueInterface.php 1 patch
Doc Comments   +29 added lines patch added patch discarded remove patch
@@ -31,28 +31,57 @@
 block discarded – undo
31 31
 
32 32
     public const STORAGE_TEXT = 'text';
33 33
 
34
+    /**
35
+     * @return AttributeSubjectInterface
36
+     */
34 37
     public function getSubject(): ?AttributeSubjectInterface;
35 38
 
39
+    /**
40
+     * @return void
41
+     */
36 42
     public function setSubject(?AttributeSubjectInterface $subject): void;
37 43
 
44
+    /**
45
+     * @return AttributeInterface
46
+     */
38 47
     public function getAttribute(): ?AttributeInterface;
39 48
 
49
+    /**
50
+     * @param \Sylius\Component\Product\Model\ProductAttributeInterface $attribute
51
+     *
52
+     * @return void
53
+     */
40 54
     public function setAttribute(?AttributeInterface $attribute): void;
41 55
 
42 56
     public function getValue();
43 57
 
58
+    /**
59
+     * @return void
60
+     */
44 61
     public function setValue($value): void;
45 62
 
63
+    /**
64
+     * @return string
65
+     */
46 66
     public function getCode(): ?string;
47 67
 
48 68
     public function getName(): ?string;
49 69
 
70
+    /**
71
+     * @return string
72
+     */
50 73
     public function getType(): ?string;
51 74
 
52 75
     /**
53 76
      * @throws \InvalidArgumentException
77
+     * @return string
54 78
      */
55 79
     public function getLocaleCode(): ?string;
56 80
 
81
+    /**
82
+     * @param string $localeCode
83
+     *
84
+     * @return void
85
+     */
57 86
     public function setLocaleCode(?string $localeCode): void;
58 87
 }
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/Component/Order/Model/OrderInterface.php 1 patch
Doc Comments   +43 added lines patch added patch discarded remove patch
@@ -27,20 +27,45 @@  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 \DateTime $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
+     * @param string $notes
66
+     *
67
+     * @return void
68
+     */
44 69
     public function setNotes(?string $notes): void;
45 70
 
46 71
     /**
@@ -48,18 +73,30 @@  discard block
 block discarded – undo
48 73
      */
49 74
     public function getItems(): Collection;
50 75
 
76
+    /**
77
+     * @return void
78
+     */
51 79
     public function clearItems(): void;
52 80
 
53 81
     public function countItems(): int;
54 82
 
83
+    /**
84
+     * @return void
85
+     */
55 86
     public function addItem(OrderItemInterface $item): void;
56 87
 
88
+    /**
89
+     * @return void
90
+     */
57 91
     public function removeItem(OrderItemInterface $item): void;
58 92
 
59 93
     public function hasItem(OrderItemInterface $item): bool;
60 94
 
61 95
     public function getItemsTotal(): int;
62 96
 
97
+    /**
98
+     * @return void
99
+     */
63 100
     public function recalculateItemsTotal(): void;
64 101
 
65 102
     public function getTotal(): int;
@@ -68,6 +105,9 @@  discard block
 block discarded – undo
68 105
 
69 106
     public function getState(): string;
70 107
 
108
+    /**
109
+     * @return void
110
+     */
71 111
     public function setState(string $state): void;
72 112
 
73 113
     public function isEmpty(): bool;
@@ -79,5 +119,8 @@  discard block
 block discarded – undo
79 119
 
80 120
     public function getAdjustmentsTotalRecursively(?string $type = null): int;
81 121
 
122
+    /**
123
+     * @return void
124
+     */
82 125
     public function removeAdjustmentsRecursively(?string $type = null): void;
83 126
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Review/Model/ReviewInterface.php 1 patch
Doc Comments   +38 added lines patch added patch discarded remove patch
@@ -24,27 +24,65 @@
 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
+     * @param ReviewableInterface $reviewSubject
84
+     *
85
+     * @return void
86
+     */
49 87
     public function setReviewSubject(?ReviewableInterface $reviewSubject): void;
50 88
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/Model/ShipmentInterface.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -27,12 +27,24 @@  discard block
 block discarded – undo
27 27
 
28 28
     public const STATE_CANCELLED = 'cancelled';
29 29
 
30
+    /**
31
+     * @return string
32
+     */
30 33
     public function getState(): ?string;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function setState(?string $state): void;
33 39
 
40
+    /**
41
+     * @return ShippingMethodInterface
42
+     */
34 43
     public function getMethod(): ?ShippingMethodInterface;
35 44
 
45
+    /**
46
+     * @return void
47
+     */
36 48
     public function setMethod(?ShippingMethodInterface $method): void;
37 49
 
38 50
     /**
@@ -40,14 +52,26 @@  discard block
 block discarded – undo
40 52
      */
41 53
     public function getUnits(): Collection;
42 54
 
55
+    /**
56
+     * @return void
57
+     */
43 58
     public function addUnit(ShipmentUnitInterface $unit): void;
44 59
 
60
+    /**
61
+     * @return void
62
+     */
45 63
     public function removeUnit(ShipmentUnitInterface $unit): void;
46 64
 
47 65
     public function hasUnit(ShipmentUnitInterface $unit): bool;
48 66
 
67
+    /**
68
+     * @return string
69
+     */
49 70
     public function getTracking(): ?string;
50 71
 
72
+    /**
73
+     * @return void
74
+     */
51 75
     public function setTracking(?string $tracking): void;
52 76
 
53 77
     public function isTracked(): bool;
Please login to merge, or discard this patch.