Completed
Push — 1.3-make-js-behat-faster ( 85e122 )
by Kamil
09:41
created
src/Sylius/Component/Taxation/Model/TaxCategoryInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -20,12 +20,24 @@  discard block
 block discarded – undo
20 20
 
21 21
 interface TaxCategoryInterface extends CodeAwareInterface, TimestampableInterface, ResourceInterface
22 22
 {
23
+    /**
24
+     * @return string
25
+     */
23 26
     public function getName(): ?string;
24 27
 
28
+    /**
29
+     * @return void
30
+     */
25 31
     public function setName(?string $name): void;
26 32
 
33
+    /**
34
+     * @return string
35
+     */
27 36
     public function getDescription(): ?string;
28 37
 
38
+    /**
39
+     * @return void
40
+     */
29 41
     public function setDescription(?string $description): void;
30 42
 
31 43
     /**
@@ -33,8 +45,14 @@  discard block
 block discarded – undo
33 45
      */
34 46
     public function getRates(): Collection;
35 47
 
48
+    /**
49
+     * @return void
50
+     */
36 51
     public function addRate(TaxRateInterface $rate): void;
37 52
 
53
+    /**
54
+     * @return void
55
+     */
38 56
     public function removeRate(TaxRateInterface $rate): void;
39 57
 
40 58
     public function hasRate(TaxRateInterface $rate): bool;
Please login to merge, or discard this patch.
src/Sylius/Component/Taxation/Model/TaxRateInterface.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -19,27 +19,54 @@
 block discarded – undo
19 19
 
20 20
 interface TaxRateInterface extends CodeAwareInterface, TimestampableInterface, ResourceInterface
21 21
 {
22
+    /**
23
+     * @return TaxCategoryInterface
24
+     */
22 25
     public function getCategory(): ?TaxCategoryInterface;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function setCategory(?TaxCategoryInterface $category): void;
25 31
 
32
+    /**
33
+     * @return string
34
+     */
26 35
     public function getName(): ?string;
27 36
 
37
+    /**
38
+     * @return void
39
+     */
28 40
     public function setName(?string $name): void;
29 41
 
30 42
     public function getAmount(): float;
31 43
 
32 44
     public function getAmountAsPercentage(): float;
33 45
 
46
+    /**
47
+     * @return void
48
+     */
34 49
     public function setAmount(?float $amount): void;
35 50
 
36 51
     public function isIncludedInPrice(): bool;
37 52
 
53
+    /**
54
+     * @return void
55
+     */
38 56
     public function setIncludedInPrice(?bool $includedInPrice): void;
39 57
 
58
+    /**
59
+     * @return string
60
+     */
40 61
     public function getCalculator(): ?string;
41 62
 
63
+    /**
64
+     * @return void
65
+     */
42 66
     public function setCalculator(?string $calculator): void;
43 67
 
68
+    /**
69
+     * @return string
70
+     */
44 71
     public function getLabel(): ?string;
45 72
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxation/Resolver/TaxRateResolverInterface.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 
14 14
 namespace Sylius\Component\Taxation\Resolver;
15 15
 
16
-use Sylius\Component\Taxation\Model\TaxableInterface;
17 16
 use Sylius\Component\Taxation\Model\TaxRateInterface;
17
+use Sylius\Component\Taxation\Model\TaxableInterface;
18 18
 
19 19
 interface TaxRateResolverInterface
20 20
 {
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/TaxonInterface.php 1 patch
Doc Comments   +33 added lines patch added patch discarded remove patch
@@ -36,6 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * @param TaxonInterface|null $taxon
39
+     * @return void
39 40
      */
40 41
     public function setParent(?self $taxon): void;
41 42
 
@@ -58,36 +59,68 @@  discard block
 block discarded – undo
58 59
 
59 60
     /**
60 61
      * @param TaxonInterface $taxon
62
+     * @return void
61 63
      */
62 64
     public function addChild(self $taxon): void;
63 65
 
64 66
     /**
65 67
      * @param TaxonInterface $taxon
68
+     * @return void
66 69
      */
67 70
     public function removeChild(self $taxon): void;
68 71
 
69 72
     public function getName(): ?string;
70 73
 
74
+    /**
75
+     * @return void
76
+     */
71 77
     public function setName(?string $name): void;
72 78
 
73 79
     public function getDescription(): ?string;
74 80
 
81
+    /**
82
+     * @return void
83
+     */
75 84
     public function setDescription(?string $description): void;
76 85
 
86
+    /**
87
+     * @return integer|null
88
+     */
77 89
     public function getLeft(): ?int;
78 90
 
91
+    /**
92
+     * @return void
93
+     */
79 94
     public function setLeft(?int $left): void;
80 95
 
96
+    /**
97
+     * @return integer|null
98
+     */
81 99
     public function getRight(): ?int;
82 100
 
101
+    /**
102
+     * @return void
103
+     */
83 104
     public function setRight(?int $right): void;
84 105
 
106
+    /**
107
+     * @return integer|null
108
+     */
85 109
     public function getLevel(): ?int;
86 110
 
111
+    /**
112
+     * @return void
113
+     */
87 114
     public function setLevel(?int $level): void;
88 115
 
116
+    /**
117
+     * @return integer|null
118
+     */
89 119
     public function getPosition(): ?int;
90 120
 
121
+    /**
122
+     * @return void
123
+     */
91 124
     public function setPosition(?int $position): void;
92 125
 
93 126
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Model/TaxonTranslationInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -19,11 +19,23 @@
 block discarded – undo
19 19
 
20 20
 interface TaxonTranslationInterface extends SlugAwareInterface, ResourceInterface, TranslationInterface
21 21
 {
22
+    /**
23
+     * @return string|null
24
+     */
22 25
     public function getName(): ?string;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function setName(?string $name): void;
25 31
 
32
+    /**
33
+     * @return string|null
34
+     */
26 35
     public function getDescription(): ?string;
27 36
 
37
+    /**
38
+     * @return void
39
+     */
28 40
     public function setDescription(?string $description): void;
29 41
 }
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/CredentialsHolderInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -15,8 +15,14 @@  discard block
 block discarded – undo
15 15
 
16 16
 interface CredentialsHolderInterface
17 17
 {
18
+    /**
19
+     * @return string|null
20
+     */
18 21
     public function getPlainPassword(): ?string;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setPlainPassword(?string $plainPassword): void;
21 27
 
22 28
     /**
@@ -29,6 +35,9 @@  discard block
 block discarded – undo
29 35
      */
30 36
     public function getPassword();
31 37
 
38
+    /**
39
+     * @return void
40
+     */
32 41
     public function setPassword(?string $encodedPassword): void;
33 42
 
34 43
     /**
@@ -45,6 +54,7 @@  discard block
 block discarded – undo
45 54
      *
46 55
      * This is important if, at any given point, sensitive information like
47 56
      * the plain-text password is stored on this object.
57
+     * @return void
48 58
      */
49 59
     public function eraseCredentials();
50 60
 }
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/User.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -520,6 +520,9 @@
 block discarded – undo
520 520
         ] = $data;
521 521
     }
522 522
 
523
+    /**
524
+     * @param \DateTimeInterface|null $date
525
+     */
523 526
     protected function hasExpired(?\DateTimeInterface $date): bool
524 527
     {
525 528
         return null !== $date && new \DateTime() >= $date;
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserInterface.php 1 patch
Doc Comments   +73 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function getEmail(): ?string;
33 33
 
34
+    /**
35
+     * @return void
36
+     */
34 37
     public function setEmail(?string $email): void;
35 38
 
36 39
     /**
@@ -38,49 +41,110 @@  discard block
 block discarded – undo
38 41
      */
39 42
     public function getEmailCanonical(): ?string;
40 43
 
44
+    /**
45
+     * @return void
46
+     */
41 47
     public function setEmailCanonical(?string $emailCanonical): void;
42 48
 
49
+    /**
50
+     * @return void
51
+     */
43 52
     public function setUsername(?string $username): void;
44 53
 
45 54
     /**
46 55
      * Gets normalized username (should be used in search and sort queries).
56
+     * @return string|null
47 57
      */
48 58
     public function getUsernameCanonical(): ?string;
49 59
 
60
+    /**
61
+     * @return void
62
+     */
50 63
     public function setUsernameCanonical(?string $usernameCanonical): void;
51 64
 
65
+    /**
66
+     * @return void
67
+     */
52 68
     public function setLocked(bool $locked): void;
53 69
 
70
+    /**
71
+     * @return string|null
72
+     */
54 73
     public function getEmailVerificationToken(): ?string;
55 74
 
75
+    /**
76
+     * @return void
77
+     */
56 78
     public function setEmailVerificationToken(?string $verificationToken): void;
57 79
 
80
+    /**
81
+     * @return string|null
82
+     */
58 83
     public function getPasswordResetToken(): ?string;
59 84
 
85
+    /**
86
+     * @param string|null $passwordResetToken
87
+     *
88
+     * @return void
89
+     */
60 90
     public function setPasswordResetToken(?string $passwordResetToken): void;
61 91
 
92
+    /**
93
+     * @return \DateTimeInterface|null
94
+     */
62 95
     public function getPasswordRequestedAt(): ?\DateTimeInterface;
63 96
 
97
+    /**
98
+     * @param \DateTime|null $date
99
+     *
100
+     * @return void
101
+     */
64 102
     public function setPasswordRequestedAt(?\DateTimeInterface $date): void;
65 103
 
66 104
     public function isPasswordRequestNonExpired(\DateInterval $ttl): bool;
67 105
 
68 106
     public function isVerified(): bool;
69 107
 
108
+    /**
109
+     * @return \DateTimeInterface|null
110
+     */
70 111
     public function getVerifiedAt(): ?\DateTimeInterface;
71 112
 
113
+    /**
114
+     * @param \DateTime|null $verifiedAt
115
+     *
116
+     * @return void
117
+     */
72 118
     public function setVerifiedAt(?\DateTimeInterface $verifiedAt): void;
73 119
 
120
+    /**
121
+     * @return \DateTimeInterface|null
122
+     */
74 123
     public function getExpiresAt(): ?\DateTimeInterface;
75 124
 
125
+    /**
126
+     * @return void
127
+     */
76 128
     public function setExpiresAt(?\DateTimeInterface $date): void;
77 129
 
130
+    /**
131
+     * @return \DateTimeInterface|null
132
+     */
78 133
     public function getCredentialsExpireAt(): ?\DateTimeInterface;
79 134
 
135
+    /**
136
+     * @return void
137
+     */
80 138
     public function setCredentialsExpireAt(?\DateTimeInterface $date): void;
81 139
 
140
+    /**
141
+     * @return \DateTimeInterface|null
142
+     */
82 143
     public function getLastLogin(): ?\DateTimeInterface;
83 144
 
145
+    /**
146
+     * @return void
147
+     */
84 148
     public function setLastLogin(?\DateTimeInterface $time): void;
85 149
 
86 150
     /**
@@ -93,8 +157,14 @@  discard block
 block discarded – undo
93 157
      */
94 158
     public function hasRole(string $role): bool;
95 159
 
160
+    /**
161
+     * @return void
162
+     */
96 163
     public function addRole(string $role): void;
97 164
 
165
+    /**
166
+     * @return void
167
+     */
98 168
     public function removeRole(string $role): void;
99 169
 
100 170
     /**
@@ -104,5 +174,8 @@  discard block
 block discarded – undo
104 174
 
105 175
     public function getOAuthAccount(string $provider): ?UserOAuthInterface;
106 176
 
177
+    /**
178
+     * @return void
179
+     */
107 180
     public function addOAuthAccount(UserOAuthInterface $oauth): void;
108 181
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Validator/EnabledValidator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
         }
43 43
     }
44 44
 
45
+    /**
46
+     * @param ToggleableInterface $value
47
+     */
45 48
     private function ensureValueImplementsToggleableInterface($value): void
46 49
     {
47 50
         if (!($value instanceof ToggleableInterface)) {
Please login to merge, or discard this patch.