@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Product\Model; |
| 15 | 15 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * {@inheritdoc} |
| 51 | 51 | */ |
| 52 | - public function setName(?string $name): void |
|
| 52 | + public function setName(?string $name) : void |
|
| 53 | 53 | { |
| 54 | 54 | $this->name = $name; |
| 55 | 55 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @param AdjustableInterface|null $adjustable |
| 31 | 31 | */ |
| 32 | - public function setAdjustable(?AdjustableInterface $adjustable): void; |
|
| 32 | + public function setAdjustable(?AdjustableInterface $adjustable) : void; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @return string|null |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * @param string|null $type |
| 41 | 41 | */ |
| 42 | - public function setType(?string $type): void; |
|
| 42 | + public function setType(?string $type) : void; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @return string|null |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * @param string|null $label |
| 51 | 51 | */ |
| 52 | - public function setLabel(?string $label): void; |
|
| 52 | + public function setLabel(?string $label) : void; |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * @return int |
@@ -102,5 +102,5 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * @param string|null $originCode |
| 104 | 104 | */ |
| 105 | - public function setOriginCode(?string $originCode): void; |
|
| 105 | + public function setOriginCode(?string $originCode) : void; |
|
| 106 | 106 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -26,5 +26,5 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * @param OrderInterface|null $order |
| 28 | 28 | */ |
| 29 | - public function setOrder(?OrderInterface $order): void; |
|
| 29 | + public function setOrder(?OrderInterface $order) : void; |
|
| 30 | 30 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * {@inheritdoc} |
| 108 | 108 | */ |
| 109 | - public function setOrder(?OrderInterface $order): void |
|
| 109 | + public function setOrder(?OrderInterface $order) : void |
|
| 110 | 110 | { |
| 111 | 111 | $currentOrder = $this->getOrder(); |
| 112 | 112 | if ($currentOrder === $order) { |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | /** |
| 261 | 261 | * {@inheritdoc} |
| 262 | 262 | */ |
| 263 | - public function getAdjustments(?string $type = null): Collection |
|
| 263 | + public function getAdjustments(?string $type = null) : Collection |
|
| 264 | 264 | { |
| 265 | 265 | if (null === $type) { |
| 266 | 266 | return $this->adjustments; |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | /** |
| 275 | 275 | * {@inheritdoc} |
| 276 | 276 | */ |
| 277 | - public function getAdjustmentsRecursively(?string $type = null): Collection |
|
| 277 | + public function getAdjustmentsRecursively(?string $type = null) : Collection |
|
| 278 | 278 | { |
| 279 | 279 | $adjustments = clone $this->getAdjustments($type); |
| 280 | 280 | |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | /** |
| 323 | 323 | * {@inheritdoc} |
| 324 | 324 | */ |
| 325 | - public function getAdjustmentsTotal(?string $type = null): int |
|
| 325 | + public function getAdjustmentsTotal(?string $type = null) : int |
|
| 326 | 326 | { |
| 327 | 327 | if (null === $type) { |
| 328 | 328 | return $this->adjustmentsTotal; |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | /** |
| 342 | 342 | * {@inheritdoc} |
| 343 | 343 | */ |
| 344 | - public function getAdjustmentsTotalRecursively(?string $type = null): int |
|
| 344 | + public function getAdjustmentsTotalRecursively(?string $type = null) : int |
|
| 345 | 345 | { |
| 346 | 346 | $total = 0; |
| 347 | 347 | |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | /** |
| 358 | 358 | * {@inheritdoc} |
| 359 | 359 | */ |
| 360 | - public function removeAdjustments(?string $type = null): void |
|
| 360 | + public function removeAdjustments(?string $type = null) : void |
|
| 361 | 361 | { |
| 362 | 362 | foreach ($this->getAdjustments($type) as $adjustment) { |
| 363 | 363 | $this->removeAdjustment($adjustment); |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | /** |
| 368 | 368 | * {@inheritdoc} |
| 369 | 369 | */ |
| 370 | - public function removeAdjustmentsRecursively(?string $type = null): void |
|
| 370 | + public function removeAdjustmentsRecursively(?string $type = null) : void |
|
| 371 | 371 | { |
| 372 | 372 | $this->removeAdjustments($type); |
| 373 | 373 | foreach ($this->units as $unit) { |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * @param \DateTimeInterface|null $checkoutCompletedAt |
| 37 | 37 | */ |
| 38 | - public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void; |
|
| 38 | + public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt) : void; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @return bool |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * @param string|null |
| 54 | 54 | */ |
| 55 | - public function setNumber(?string $number): void; |
|
| 55 | + public function setNumber(?string $number) : void; |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * @return string|null |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * @param string|null $notes |
| 64 | 64 | */ |
| 65 | - public function setNotes(?string $notes): void; |
|
| 65 | + public function setNotes(?string $notes) : void; |
|
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * @return Collection|OrderItemInterface[] |
@@ -130,17 +130,17 @@ discard block |
||
| 130 | 130 | * |
| 131 | 131 | * @return Collection|AdjustmentInterface[] |
| 132 | 132 | */ |
| 133 | - public function getAdjustmentsRecursively(?string $type = null): Collection; |
|
| 133 | + public function getAdjustmentsRecursively(?string $type = null) : Collection; |
|
| 134 | 134 | |
| 135 | 135 | /** |
| 136 | 136 | * @param string|null $type |
| 137 | 137 | * |
| 138 | 138 | * @return int |
| 139 | 139 | */ |
| 140 | - public function getAdjustmentsTotalRecursively(?string $type = null): int; |
|
| 140 | + public function getAdjustmentsTotalRecursively(?string $type = null) : int; |
|
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | 143 | * @param string|null $type |
| 144 | 144 | */ |
| 145 | - public function removeAdjustmentsRecursively(?string $type = null): void; |
|
| 145 | + public function removeAdjustmentsRecursively(?string $type = null) : void; |
|
| 146 | 146 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * {@inheritdoc} |
| 88 | 88 | */ |
| 89 | - public function getAdjustments(?string $type = null): Collection |
|
| 89 | + public function getAdjustments(?string $type = null) : Collection |
|
| 90 | 90 | { |
| 91 | 91 | if (null === $type) { |
| 92 | 92 | return $this->adjustments; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * {@inheritdoc} |
| 140 | 140 | */ |
| 141 | - public function getAdjustmentsTotal(?string $type = null): int |
|
| 141 | + public function getAdjustmentsTotal(?string $type = null) : int |
|
| 142 | 142 | { |
| 143 | 143 | if (null === $type) { |
| 144 | 144 | return $this->adjustmentsTotal; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * {@inheritdoc} |
| 159 | 159 | */ |
| 160 | - public function removeAdjustments(?string $type = null): void |
|
| 160 | + public function removeAdjustments(?string $type = null) : void |
|
| 161 | 161 | { |
| 162 | 162 | foreach ($this->getAdjustments($type) as $adjustment) { |
| 163 | 163 | $this->removeAdjustment($adjustment); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * {@inheritdoc} |
| 104 | 104 | */ |
| 105 | - public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void |
|
| 105 | + public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt) : void |
|
| 106 | 106 | { |
| 107 | 107 | $this->checkoutCompletedAt = $checkoutCompletedAt; |
| 108 | 108 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | /** |
| 135 | 135 | * {@inheritdoc} |
| 136 | 136 | */ |
| 137 | - public function setNumber(?string $number): void |
|
| 137 | + public function setNumber(?string $number) : void |
|
| 138 | 138 | { |
| 139 | 139 | $this->number = $number; |
| 140 | 140 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | /** |
| 151 | 151 | * {@inheritdoc} |
| 152 | 152 | */ |
| 153 | - public function setNotes(?string $notes): void |
|
| 153 | + public function setNotes(?string $notes) : void |
|
| 154 | 154 | { |
| 155 | 155 | $this->notes = $notes; |
| 156 | 156 | } |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | /** |
| 289 | 289 | * {@inheritdoc} |
| 290 | 290 | */ |
| 291 | - public function getAdjustments(?string $type = null): Collection |
|
| 291 | + public function getAdjustments(?string $type = null) : Collection |
|
| 292 | 292 | { |
| 293 | 293 | if (null === $type) { |
| 294 | 294 | return $this->adjustments; |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | /** |
| 303 | 303 | * {@inheritdoc} |
| 304 | 304 | */ |
| 305 | - public function getAdjustmentsRecursively(?string $type = null): Collection |
|
| 305 | + public function getAdjustmentsRecursively(?string $type = null) : Collection |
|
| 306 | 306 | { |
| 307 | 307 | $adjustments = clone $this->getAdjustments($type); |
| 308 | 308 | foreach ($this->items as $item) { |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | /** |
| 350 | 350 | * {@inheritdoc} |
| 351 | 351 | */ |
| 352 | - public function getAdjustmentsTotal(?string $type = null): int |
|
| 352 | + public function getAdjustmentsTotal(?string $type = null) : int |
|
| 353 | 353 | { |
| 354 | 354 | if (null === $type) { |
| 355 | 355 | return $this->adjustmentsTotal; |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | /** |
| 369 | 369 | * {@inheritdoc} |
| 370 | 370 | */ |
| 371 | - public function getAdjustmentsTotalRecursively(?string $type = null): int |
|
| 371 | + public function getAdjustmentsTotalRecursively(?string $type = null) : int |
|
| 372 | 372 | { |
| 373 | 373 | $total = 0; |
| 374 | 374 | foreach ($this->getAdjustmentsRecursively($type) as $adjustment) { |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | /** |
| 384 | 384 | * {@inheritdoc} |
| 385 | 385 | */ |
| 386 | - public function removeAdjustments(?string $type = null): void |
|
| 386 | + public function removeAdjustments(?string $type = null) : void |
|
| 387 | 387 | { |
| 388 | 388 | foreach ($this->getAdjustments($type) as $adjustment) { |
| 389 | 389 | if ($adjustment->isLocked()) { |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | /** |
| 398 | 398 | * {@inheritdoc} |
| 399 | 399 | */ |
| 400 | - public function removeAdjustmentsRecursively(?string $type = null): void |
|
| 400 | + public function removeAdjustmentsRecursively(?string $type = null) : void |
|
| 401 | 401 | { |
| 402 | 402 | $this->removeAdjustments($type); |
| 403 | 403 | foreach ($this->items as $item) { |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * {@inheritdoc} |
| 111 | 111 | */ |
| 112 | - public function setAdjustable(?AdjustableInterface $adjustable): void |
|
| 112 | + public function setAdjustable(?AdjustableInterface $adjustable) : void |
|
| 113 | 113 | { |
| 114 | 114 | $this->assertNotLocked(); |
| 115 | 115 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | /** |
| 143 | 143 | * {@inheritdoc} |
| 144 | 144 | */ |
| 145 | - public function setType(?string $type): void |
|
| 145 | + public function setType(?string $type) : void |
|
| 146 | 146 | { |
| 147 | 147 | $this->type = $type; |
| 148 | 148 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * {@inheritdoc} |
| 160 | 160 | */ |
| 161 | - public function setLabel(?string $label): void |
|
| 161 | + public function setLabel(?string $label) : void |
|
| 162 | 162 | { |
| 163 | 163 | $this->label = $label; |
| 164 | 164 | } |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | /** |
| 253 | 253 | * {@inheritdoc} |
| 254 | 254 | */ |
| 255 | - public function setOriginCode(?string $originCode): void |
|
| 255 | + public function setOriginCode(?string $originCode) : void |
|
| 256 | 256 | { |
| 257 | 257 | $this->originCode = $originCode; |
| 258 | 258 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Order\Model; |
| 15 | 15 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @return Collection|AdjustmentInterface[] |
| 27 | 27 | */ |
| 28 | - public function getAdjustments(?string $type = null): Collection; |
|
| 28 | + public function getAdjustments(?string $type = null) : Collection; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @param AdjustmentInterface $adjustment |
@@ -42,12 +42,12 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @return int |
| 44 | 44 | */ |
| 45 | - public function getAdjustmentsTotal(?string $type = null): int; |
|
| 45 | + public function getAdjustmentsTotal(?string $type = null) : int; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @param string|null $type |
| 49 | 49 | */ |
| 50 | - public function removeAdjustments(?string $type = null): void; |
|
| 50 | + public function removeAdjustments(?string $type = null) : void; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Recalculates adjustments total. Should be used after adjustment change. |