@@ -45,6 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * @param null|\DateTime $availableOn |
| 48 | + * @return void |
|
| 48 | 49 | */ |
| 49 | 50 | public function setAvailableOn(\DateTime $availableOn = null); |
| 50 | 51 | |
@@ -55,21 +56,23 @@ discard block |
||
| 55 | 56 | |
| 56 | 57 | /** |
| 57 | 58 | * @param null|\DateTime $availableUntil |
| 59 | + * @return void |
|
| 58 | 60 | */ |
| 59 | 61 | public function setAvailableUntil(\DateTime $availableUntil = null); |
| 60 | 62 | |
| 61 | 63 | /** |
| 62 | 64 | * @param ProductAssociationInterface $association |
| 65 | + * @return void |
|
| 63 | 66 | */ |
| 64 | 67 | public function addAssociation(ProductAssociationInterface $association); |
| 65 | 68 | |
| 66 | 69 | /** |
| 67 | - * @param ProductAssociationInterface[] $association |
|
| 68 | 70 | */ |
| 69 | 71 | public function getAssociations(); |
| 70 | 72 | |
| 71 | 73 | /** |
| 72 | 74 | * @param ProductAssociationInterface $association |
| 75 | + * @return void |
|
| 73 | 76 | */ |
| 74 | 77 | public function removeAssociation(ProductAssociationInterface $association); |
| 75 | 78 | |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Component\Product\Model; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Variation\Model\Variant as BaseVariant; |
| 15 | -use Sylius\Component\Variation\Model\VariantInterface as BaseVariantInterface; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -11,10 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Product\Model; |
| 13 | 13 | |
| 14 | -use Doctrine\Common\Collections\ArrayCollection; |
|
| 15 | 14 | use Doctrine\Common\Collections\Collection; |
| 16 | 15 | use PhpSpec\ObjectBehavior; |
| 17 | -use Prophecy\Argument; |
|
| 18 | 16 | use Sylius\Component\Association\Model\AssociableInterface; |
| 19 | 17 | use Sylius\Component\Product\Model\ArchetypeInterface; |
| 20 | 18 | use Sylius\Component\Product\Model\AttributeValueInterface; |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | /** |
| 61 | 61 | * @param InstructionInterface $instruction |
| 62 | 62 | * |
| 63 | - * @return int |
|
| 63 | + * @return double |
|
| 64 | 64 | */ |
| 65 | 65 | private function calculatePossibleGenerationAmount(InstructionInterface $instruction) |
| 66 | 66 | { |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param int $usageLimit |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setUsageLimit($usageLimit); |
| 32 | 33 | |
@@ -37,9 +38,13 @@ discard block |
||
| 37 | 38 | |
| 38 | 39 | /** |
| 39 | 40 | * @param int $used |
| 41 | + * @return void |
|
| 40 | 42 | */ |
| 41 | 43 | public function setUsed($used); |
| 42 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 43 | 48 | public function incrementUsed(); |
| 44 | 49 | |
| 45 | 50 | /** |
@@ -49,6 +54,7 @@ discard block |
||
| 49 | 54 | |
| 50 | 55 | /** |
| 51 | 56 | * @param PromotionInterface $promotion |
| 57 | + * @return void |
|
| 52 | 58 | */ |
| 53 | 59 | public function setPromotion(PromotionInterface $promotion = null); |
| 54 | 60 | |
@@ -59,6 +65,7 @@ discard block |
||
| 59 | 65 | |
| 60 | 66 | /** |
| 61 | 67 | * @param \DateTime $expiresAt |
| 68 | + * @return void |
|
| 62 | 69 | */ |
| 63 | 70 | public function setExpiresAt(\DateTime $expiresAt = null); |
| 64 | 71 | |
@@ -28,6 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @param string $name |
| 31 | + * @return void |
|
| 31 | 32 | */ |
| 32 | 33 | public function setName($name); |
| 33 | 34 | |
@@ -38,6 +39,7 @@ discard block |
||
| 38 | 39 | |
| 39 | 40 | /** |
| 40 | 41 | * @param string $description |
| 42 | + * @return void |
|
| 41 | 43 | */ |
| 42 | 44 | public function setDescription($description); |
| 43 | 45 | |
@@ -48,6 +50,7 @@ discard block |
||
| 48 | 50 | |
| 49 | 51 | /** |
| 50 | 52 | * @param int $priority |
| 53 | + * @return void |
|
| 51 | 54 | */ |
| 52 | 55 | public function setPriority($priority); |
| 53 | 56 | |
@@ -58,6 +61,7 @@ discard block |
||
| 58 | 61 | |
| 59 | 62 | /** |
| 60 | 63 | * @param bool $exclusive |
| 64 | + * @return void |
|
| 61 | 65 | */ |
| 62 | 66 | public function setExclusive($exclusive); |
| 63 | 67 | |
@@ -68,6 +72,7 @@ discard block |
||
| 68 | 72 | |
| 69 | 73 | /** |
| 70 | 74 | * @param int $usageLimit |
| 75 | + * @return void |
|
| 71 | 76 | */ |
| 72 | 77 | public function setUsageLimit($usageLimit); |
| 73 | 78 | |
@@ -78,9 +83,13 @@ discard block |
||
| 78 | 83 | |
| 79 | 84 | /** |
| 80 | 85 | * @param int $used |
| 86 | + * @return void |
|
| 81 | 87 | */ |
| 82 | 88 | public function setUsed($used); |
| 83 | 89 | |
| 90 | + /** |
|
| 91 | + * @return void |
|
| 92 | + */ |
|
| 84 | 93 | public function incrementUsed(); |
| 85 | 94 | |
| 86 | 95 | /** |
@@ -90,6 +99,7 @@ discard block |
||
| 90 | 99 | |
| 91 | 100 | /** |
| 92 | 101 | * @param \DateTime $startsAt |
| 102 | + * @return void |
|
| 93 | 103 | */ |
| 94 | 104 | public function setStartsAt(\DateTime $startsAt = null); |
| 95 | 105 | |
@@ -100,6 +110,7 @@ discard block |
||
| 100 | 110 | |
| 101 | 111 | /** |
| 102 | 112 | * @param \DateTime $endsAt |
| 113 | + * @return void |
|
| 103 | 114 | */ |
| 104 | 115 | public function setEndsAt(\DateTime $endsAt = null); |
| 105 | 116 | |
@@ -110,6 +121,7 @@ discard block |
||
| 110 | 121 | |
| 111 | 122 | /** |
| 112 | 123 | * @param bool $couponBased |
| 124 | + * @return void |
|
| 113 | 125 | */ |
| 114 | 126 | public function setCouponBased($couponBased); |
| 115 | 127 | |
@@ -132,11 +144,13 @@ discard block |
||
| 132 | 144 | |
| 133 | 145 | /** |
| 134 | 146 | * @param CouponInterface $coupon |
| 147 | + * @return void |
|
| 135 | 148 | */ |
| 136 | 149 | public function addCoupon(CouponInterface $coupon); |
| 137 | 150 | |
| 138 | 151 | /** |
| 139 | 152 | * @param CouponInterface $coupon |
| 153 | + * @return void |
|
| 140 | 154 | */ |
| 141 | 155 | public function removeCoupon(CouponInterface $coupon); |
| 142 | 156 | |
@@ -159,11 +173,13 @@ discard block |
||
| 159 | 173 | |
| 160 | 174 | /** |
| 161 | 175 | * @param RuleInterface $rule |
| 176 | + * @return void |
|
| 162 | 177 | */ |
| 163 | 178 | public function addRule(RuleInterface $rule); |
| 164 | 179 | |
| 165 | 180 | /** |
| 166 | 181 | * @param RuleInterface $rule |
| 182 | + * @return void |
|
| 167 | 183 | */ |
| 168 | 184 | public function removeRule(RuleInterface $rule); |
| 169 | 185 | |
@@ -186,11 +202,13 @@ discard block |
||
| 186 | 202 | |
| 187 | 203 | /** |
| 188 | 204 | * @param ActionInterface $action |
| 205 | + * @return void |
|
| 189 | 206 | */ |
| 190 | 207 | public function addAction(ActionInterface $action); |
| 191 | 208 | |
| 192 | 209 | /** |
| 193 | 210 | * @param ActionInterface $action |
| 211 | + * @return void |
|
| 194 | 212 | */ |
| 195 | 213 | public function removeAction(ActionInterface $action); |
| 196 | 214 | } |
@@ -12,19 +12,11 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Promotion\Checker; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Promotion\Checker\PromotionEligibilityChecker; |
| 17 | 16 | use Sylius\Component\Promotion\Checker\PromotionEligibilityCheckerInterface; |
| 18 | 17 | use Sylius\Component\Promotion\Checker\PromotionSubjectEligibilityCheckerInterface; |
| 19 | -use Sylius\Component\Promotion\Checker\RuleCheckerInterface; |
|
| 20 | -use Sylius\Component\Promotion\Model\CouponInterface; |
|
| 21 | -use Sylius\Component\Promotion\Model\PromotionCouponAwareSubjectInterface; |
|
| 22 | 18 | use Sylius\Component\Promotion\Model\PromotionInterface; |
| 23 | 19 | use Sylius\Component\Promotion\Model\PromotionSubjectInterface; |
| 24 | -use Sylius\Component\Promotion\Model\RuleInterface; |
|
| 25 | -use Sylius\Component\Promotion\SyliusPromotionEvents; |
|
| 26 | -use Sylius\Component\Registry\ServiceRegistryInterface; |
|
| 27 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
| 28 | 20 | |
| 29 | 21 | /** |
| 30 | 22 | * @mixin PromotionEligibilityChecker |
@@ -30,6 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @param string $name |
| 33 | + * @return void |
|
| 33 | 34 | */ |
| 34 | 35 | public function setName($name); |
| 35 | 36 | |
@@ -40,6 +41,7 @@ discard block |
||
| 40 | 41 | |
| 41 | 42 | /** |
| 42 | 43 | * @param string $description |
| 44 | + * @return void |
|
| 43 | 45 | */ |
| 44 | 46 | public function setDescription($description); |
| 45 | 47 | |
@@ -50,11 +52,13 @@ discard block |
||
| 50 | 52 | |
| 51 | 53 | /** |
| 52 | 54 | * @param PermissionInterface $permission |
| 55 | + * @return void |
|
| 53 | 56 | */ |
| 54 | 57 | public function addPermission(PermissionInterface $permission); |
| 55 | 58 | |
| 56 | 59 | /** |
| 57 | 60 | * @param PermissionInterface $permission |
| 61 | + * @return void |
|
| 58 | 62 | */ |
| 59 | 63 | public function removePermission(PermissionInterface $permission); |
| 60 | 64 | |
@@ -72,6 +76,7 @@ discard block |
||
| 72 | 76 | |
| 73 | 77 | /** |
| 74 | 78 | * @param RoleInterface $role |
| 79 | + * @return void |
|
| 75 | 80 | */ |
| 76 | 81 | public function setParent(RoleInterface $role); |
| 77 | 82 | |
@@ -87,11 +92,13 @@ discard block |
||
| 87 | 92 | |
| 88 | 93 | /** |
| 89 | 94 | * @param RoleInterface $role |
| 95 | + * @return void |
|
| 90 | 96 | */ |
| 91 | 97 | public function addChild(RoleInterface $role); |
| 92 | 98 | |
| 93 | 99 | /** |
| 94 | 100 | * @param RoleInterface $role |
| 101 | + * @return void |
|
| 95 | 102 | */ |
| 96 | 103 | public function removeChild(RoleInterface $role); |
| 97 | 104 | |
@@ -109,6 +116,7 @@ discard block |
||
| 109 | 116 | |
| 110 | 117 | /** |
| 111 | 118 | * @param int $left |
| 119 | + * @return void |
|
| 112 | 120 | */ |
| 113 | 121 | public function setLeft($left); |
| 114 | 122 | |
@@ -119,6 +127,7 @@ discard block |
||
| 119 | 127 | |
| 120 | 128 | /** |
| 121 | 129 | * @param int $right |
| 130 | + * @return void |
|
| 122 | 131 | */ |
| 123 | 132 | public function setRight($right); |
| 124 | 133 | |
@@ -129,6 +138,7 @@ discard block |
||
| 129 | 138 | |
| 130 | 139 | /** |
| 131 | 140 | * @param int $level |
| 141 | + * @return void |
|
| 132 | 142 | */ |
| 133 | 143 | public function setLevel($level); |
| 134 | 144 | } |
@@ -14,12 +14,11 @@ |
||
| 14 | 14 | require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
| 15 | 15 | |
| 16 | 16 | use PhpSpec\ObjectBehavior; |
| 17 | -use Prophecy\Argument; |
|
| 18 | -use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface; |
|
| 19 | 17 | use Sylius\Component\Registry\NonExistingServiceException; |
| 20 | 18 | use Sylius\Component\Registry\PrioritizedServiceRegistry; |
| 21 | 19 | use Sylius\Component\Registry\PrioritizedServiceRegistryInterface; |
| 22 | 20 | use Zend\Stdlib\PriorityQueue; |
| 21 | +use spec\Sylius\Component\Registry\Fixture\SampleServiceInterface; |
|
| 23 | 22 | |
| 24 | 23 | /** |
| 25 | 24 | * @mixin PrioritizedServiceRegistry |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Registry; |
| 13 | 13 | |
| 14 | -require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
|
| 14 | +require_once __DIR__ . '/Fixture/SampleServiceInterface.php'; |
|
| 15 | 15 | |
| 16 | 16 | use PhpSpec\ObjectBehavior; |
| 17 | 17 | use Prophecy\Argument; |