@@ -27,12 +27,24 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public const STATE_CANCELLED = 'cancelled'; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @return string |
|
| 32 | + */ |
|
| 30 | 33 | public function getState(): ?string; |
| 31 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 32 | 38 | public function setState(?string $state): void; |
| 33 | 39 | |
| 40 | + /** |
|
| 41 | + * @return ShippingMethodInterface|null |
|
| 42 | + */ |
|
| 34 | 43 | public function getMethod(): ?ShippingMethodInterface; |
| 35 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 36 | 48 | public function setMethod(?ShippingMethodInterface $method): void; |
| 37 | 49 | |
| 38 | 50 | /** |
@@ -42,19 +54,39 @@ discard block |
||
| 42 | 54 | */ |
| 43 | 55 | public function getUnits(): Collection; |
| 44 | 56 | |
| 57 | + /** |
|
| 58 | + * @return void |
|
| 59 | + */ |
|
| 45 | 60 | public function addUnit(ShipmentUnitInterface $unit): void; |
| 46 | 61 | |
| 62 | + /** |
|
| 63 | + * @return void |
|
| 64 | + */ |
|
| 47 | 65 | public function removeUnit(ShipmentUnitInterface $unit): void; |
| 48 | 66 | |
| 49 | 67 | public function hasUnit(ShipmentUnitInterface $unit): bool; |
| 50 | 68 | |
| 69 | + /** |
|
| 70 | + * @return string|null |
|
| 71 | + */ |
|
| 51 | 72 | public function getTracking(): ?string; |
| 52 | 73 | |
| 74 | + /** |
|
| 75 | + * @return void |
|
| 76 | + */ |
|
| 53 | 77 | public function setTracking(?string $tracking): void; |
| 54 | 78 | |
| 55 | 79 | public function isTracked(): bool; |
| 56 | 80 | |
| 81 | + /** |
|
| 82 | + * @return \DateTimeInterface|null |
|
| 83 | + */ |
|
| 57 | 84 | public function getShippedAt(): ?\DateTimeInterface; |
| 58 | 85 | |
| 86 | + /** |
|
| 87 | + * @param \DateTimeInterface $shippedAt |
|
| 88 | + * |
|
| 89 | + * @return void |
|
| 90 | + */ |
|
| 59 | 91 | public function setShippedAt(?\DateTimeInterface $shippedAt): void; |
| 60 | 92 | } |
@@ -25,5 +25,8 @@ |
||
| 25 | 25 | |
| 26 | 26 | public function hasResendVerificationEmailButton(): bool; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 28 | 31 | public function pressResendVerificationEmail(): void; |
| 29 | 32 | } |
@@ -253,7 +253,7 @@ |
||
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | /** |
| 256 | - * @param string|array $selector |
|
| 256 | + * @param string $selector |
|
| 257 | 257 | * |
| 258 | 258 | * @throws ElementNotFoundException |
| 259 | 259 | */ |
@@ -16,16 +16,15 @@ |
||
| 16 | 16 | use Doctrine\ORM\EntityManager; |
| 17 | 17 | use Doctrine\ORM\Mapping; |
| 18 | 18 | use Doctrine\ORM\QueryBuilder; |
| 19 | +use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
| 19 | 20 | use Sylius\Bundle\OrderBundle\Doctrine\ORM\OrderRepository as BaseOrderRepository; |
| 20 | 21 | use Sylius\Component\Core\Model\ChannelInterface; |
| 21 | 22 | use Sylius\Component\Core\Model\CustomerInterface; |
| 22 | -use Sylius\Component\Core\Model\Order; |
|
| 23 | 23 | use Sylius\Component\Core\Model\OrderInterface; |
| 24 | 24 | use Sylius\Component\Core\Model\PromotionCouponInterface; |
| 25 | 25 | use Sylius\Component\Core\OrderCheckoutStates; |
| 26 | 26 | use Sylius\Component\Core\OrderPaymentStates; |
| 27 | 27 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
| 28 | -use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
| 29 | 28 | |
| 30 | 29 | class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface |
| 31 | 30 | { |