@@ -17,15 +17,27 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface IndexPageInterface extends BaseIndexPageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function chooseStateToFilter(string $paymentState): void; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function completePaymentOfOrderWithNumber(string $orderNumber): void; |
| 23 | 29 | |
| 24 | 30 | public function getPaymentStateByOrderNumber(string $orderNumber): string; |
| 25 | 31 | |
| 26 | 32 | public function isPaymentWithOrderNumberInPosition(string $orderNumber, int $position): bool; |
| 27 | 33 | |
| 34 | + /** |
|
| 35 | + * @return void |
|
| 36 | + */ |
|
| 28 | 37 | public function showOrderPageForNthPayment(int $position): void; |
| 29 | 38 | |
| 39 | + /** |
|
| 40 | + * @return void |
|
| 41 | + */ |
|
| 30 | 42 | public function chooseChannelFilter(string $channelName): void; |
| 31 | 43 | } |
@@ -24,11 +24,23 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function isShowInShopButtonDisabled(): bool; |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 27 | 30 | public function showProductInChannel(string $channel): void; |
| 28 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 29 | 35 | public function showProductInSingleChannel(): void; |
| 30 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 31 | 40 | public function showProductEditPage(): void; |
| 32 | 41 | |
| 42 | + /** |
|
| 43 | + * @return void |
|
| 44 | + */ |
|
| 33 | 45 | public function showVariantEditPage(ProductVariantInterface $variant): void; |
| 34 | 46 | } |
@@ -24,27 +24,63 @@ |
||
| 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 | + * @return void |
|
| 84 | + */ |
|
| 49 | 85 | public function setReviewSubject(?ReviewableInterface $reviewSubject): void; |
| 50 | 86 | } |
@@ -27,20 +27,43 @@ discard block |
||
| 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 \DateTimeInterface $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 | + * @return void |
|
| 66 | + */ |
|
| 44 | 67 | public function setNotes(?string $notes): void; |
| 45 | 68 | |
| 46 | 69 | /** |
@@ -48,18 +71,30 @@ discard block |
||
| 48 | 71 | */ |
| 49 | 72 | public function getItems(): Collection; |
| 50 | 73 | |
| 74 | + /** |
|
| 75 | + * @return void |
|
| 76 | + */ |
|
| 51 | 77 | public function clearItems(): void; |
| 52 | 78 | |
| 53 | 79 | public function countItems(): int; |
| 54 | 80 | |
| 81 | + /** |
|
| 82 | + * @return void |
|
| 83 | + */ |
|
| 55 | 84 | public function addItem(OrderItemInterface $item): void; |
| 56 | 85 | |
| 86 | + /** |
|
| 87 | + * @return void |
|
| 88 | + */ |
|
| 57 | 89 | public function removeItem(OrderItemInterface $item): void; |
| 58 | 90 | |
| 59 | 91 | public function hasItem(OrderItemInterface $item): bool; |
| 60 | 92 | |
| 61 | 93 | public function getItemsTotal(): int; |
| 62 | 94 | |
| 95 | + /** |
|
| 96 | + * @return void |
|
| 97 | + */ |
|
| 63 | 98 | public function recalculateItemsTotal(): void; |
| 64 | 99 | |
| 65 | 100 | public function getTotal(): int; |
@@ -68,6 +103,9 @@ discard block |
||
| 68 | 103 | |
| 69 | 104 | public function getState(): string; |
| 70 | 105 | |
| 106 | + /** |
|
| 107 | + * @return void |
|
| 108 | + */ |
|
| 71 | 109 | public function setState(string $state): void; |
| 72 | 110 | |
| 73 | 111 | public function isEmpty(): bool; |
@@ -79,5 +117,8 @@ discard block |
||
| 79 | 117 | |
| 80 | 118 | public function getAdjustmentsTotalRecursively(?string $type = null): int; |
| 81 | 119 | |
| 120 | + /** |
|
| 121 | + * @return void |
|
| 122 | + */ |
|
| 82 | 123 | public function removeAdjustmentsRecursively(?string $type = null): void; |
| 83 | 124 | } |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | public function getFunctions(): array |
| 34 | 34 | { |
| 35 | 35 | return [ |
| 36 | - new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | - new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 36 | + new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 37 | + new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 38 | 38 | ]; |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -18,7 +18,13 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface AttributeTranslationInterface extends ResourceInterface, TranslationInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return string|null |
|
| 23 | + */ |
|
| 21 | 24 | public function getName(): ?string; |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function setName(?string $name): void; |
| 24 | 30 | } |
@@ -17,12 +17,24 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | interface ChannelPricingInterface extends ResourceInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return ProductVariantInterface|null |
|
| 22 | + */ |
|
| 20 | 23 | public function getProductVariant(): ?ProductVariantInterface; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function setProductVariant(?ProductVariantInterface $productVariant): void; |
| 23 | 29 | |
| 30 | + /** |
|
| 31 | + * @return integer|null |
|
| 32 | + */ |
|
| 24 | 33 | public function getPrice(): ?int; |
| 25 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 26 | 38 | public function setPrice(?int $price): void; |
| 27 | 39 | |
| 28 | 40 | /** |
@@ -30,10 +42,21 @@ discard block |
||
| 30 | 42 | */ |
| 31 | 43 | public function getChannelCode(): ?string; |
| 32 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 33 | 48 | public function setChannelCode(?string $channelCode): void; |
| 34 | 49 | |
| 50 | + /** |
|
| 51 | + * @return integer|null |
|
| 52 | + */ |
|
| 35 | 53 | public function getOriginalPrice(): ?int; |
| 36 | 54 | |
| 55 | + /** |
|
| 56 | + * @param integer $originalPrice |
|
| 57 | + * |
|
| 58 | + * @return void |
|
| 59 | + */ |
|
| 37 | 60 | public function setOriginalPrice(?int $originalPrice): void; |
| 38 | 61 | |
| 39 | 62 | public function isPriceReduced(): bool; |
@@ -22,16 +22,33 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function getType(): ?string; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 25 | 28 | public function setType(?string $type): void; |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @return \SplFileInfo|null |
|
| 32 | + */ |
|
| 27 | 33 | public function getFile(): ?\SplFileInfo; |
| 28 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 29 | 38 | public function setFile(?\SplFileInfo $file): void; |
| 30 | 39 | |
| 31 | 40 | public function hasFile(): bool; |
| 32 | 41 | |
| 42 | + /** |
|
| 43 | + * @return string|null |
|
| 44 | + */ |
|
| 33 | 45 | public function getPath(): ?string; |
| 34 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $path |
|
| 49 | + * |
|
| 50 | + * @return void |
|
| 51 | + */ |
|
| 35 | 52 | public function setPath(?string $path): void; |
| 36 | 53 | |
| 37 | 54 | /** |
@@ -41,6 +58,7 @@ discard block |
||
| 41 | 58 | |
| 42 | 59 | /** |
| 43 | 60 | * @param object|null $owner |
| 61 | + * @return void |
|
| 44 | 62 | */ |
| 45 | 63 | public function setOwner($owner): void; |
| 46 | 64 | } |
@@ -17,15 +17,33 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface ProductTaxonInterface extends ResourceInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return ProductInterface|null |
|
| 22 | + */ |
|
| 20 | 23 | public function getProduct(): ?ProductInterface; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function setProduct(?ProductInterface $product): void; |
| 23 | 29 | |
| 30 | + /** |
|
| 31 | + * @return TaxonInterface|null |
|
| 32 | + */ |
|
| 24 | 33 | public function getTaxon(): ?TaxonInterface; |
| 25 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 26 | 38 | public function setTaxon(?TaxonInterface $taxon): void; |
| 27 | 39 | |
| 40 | + /** |
|
| 41 | + * @return integer|null |
|
| 42 | + */ |
|
| 28 | 43 | public function getPosition(): ?int; |
| 29 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 30 | 48 | public function setPosition(?int $position): void; |
| 31 | 49 | } |