@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface TaxCalculationStrategyInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function applyTaxes(OrderInterface $order, ZoneInterface $zone): void; |
| 22 | 25 | |
| 23 | 26 | public function getType(): string; |
@@ -17,7 +17,13 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface OrderTokenAssignerInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function assignTokenValue(OrderInterface $order): void; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function assignTokenValueIfNotSet(OrderInterface $order): void; |
| 23 | 29 | } |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface ImageUploaderInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function upload(ImageInterface $image): void; |
| 21 | 24 | |
| 22 | 25 | public function remove(string $path): bool; |
@@ -24,7 +24,13 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function hasCurrency(CurrencyInterface $currency): bool; |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 27 | 30 | public function addCurrency(CurrencyInterface $currency): void; |
| 28 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 29 | 35 | public function removeCurrency(CurrencyInterface $currency): void; |
| 30 | 36 | } |
@@ -17,15 +17,35 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface ExchangeRateInterface extends ResourceInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return double|null |
|
| 22 | + */ |
|
| 20 | 23 | public function getRatio(): ?float; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @param double $ratio |
|
| 27 | + * |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 22 | 30 | public function setRatio(?float $ratio); |
| 23 | 31 | |
| 32 | + /** |
|
| 33 | + * @return CurrencyInterface|null |
|
| 34 | + */ |
|
| 24 | 35 | public function getSourceCurrency(): ?CurrencyInterface; |
| 25 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 26 | 40 | public function setSourceCurrency(CurrencyInterface $currency): void; |
| 27 | 41 | |
| 42 | + /** |
|
| 43 | + * @return CurrencyInterface|null |
|
| 44 | + */ |
|
| 28 | 45 | public function getTargetCurrency(): ?CurrencyInterface; |
| 29 | 46 | |
| 47 | + /** |
|
| 48 | + * @return void |
|
| 49 | + */ |
|
| 30 | 50 | public function setTargetCurrency(CurrencyInterface $currency): void; |
| 31 | 51 | } |
@@ -19,15 +19,30 @@ |
||
| 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 | } |
@@ -24,7 +24,13 @@ |
||
| 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 | } |
@@ -22,16 +22,26 @@ |
||
| 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 | } |
@@ -22,12 +22,16 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function getUnitPrice(): int; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 25 | 28 | public function setUnitPrice(int $unitPrice): void; |
| 26 | 29 | |
| 27 | 30 | public function getTotal(): int; |
| 28 | 31 | |
| 29 | 32 | /** |
| 30 | 33 | * Recalculate totals. Should be used after every unit change. |
| 34 | + * @return void |
|
| 31 | 35 | */ |
| 32 | 36 | public function recalculateUnitsTotal(): void; |
| 33 | 37 | |
@@ -39,6 +43,9 @@ discard block |
||
| 39 | 43 | |
| 40 | 44 | public function isImmutable(): bool; |
| 41 | 45 | |
| 46 | + /** |
|
| 47 | + * @return void |
|
| 48 | + */ |
|
| 42 | 49 | public function setImmutable(bool $immutable): void; |
| 43 | 50 | |
| 44 | 51 | /** |
@@ -48,8 +55,14 @@ discard block |
||
| 48 | 55 | |
| 49 | 56 | public function hasUnit(OrderItemUnitInterface $itemUnit): bool; |
| 50 | 57 | |
| 58 | + /** |
|
| 59 | + * @return void |
|
| 60 | + */ |
|
| 51 | 61 | public function addUnit(OrderItemUnitInterface $itemUnit): void; |
| 52 | 62 | |
| 63 | + /** |
|
| 64 | + * @return void |
|
| 65 | + */ |
|
| 53 | 66 | public function removeUnit(OrderItemUnitInterface $itemUnit): void; |
| 54 | 67 | |
| 55 | 68 | /** |
@@ -57,6 +70,9 @@ discard block |
||
| 57 | 70 | */ |
| 58 | 71 | public function getAdjustmentsRecursively(?string $type = null): Collection; |
| 59 | 72 | |
| 73 | + /** |
|
| 74 | + * @return void |
|
| 75 | + */ |
|
| 60 | 76 | public function removeAdjustmentsRecursively(?string $type = null): void; |
| 61 | 77 | |
| 62 | 78 | public function getAdjustmentsTotalRecursively(?string $type = null): int; |