@@ -125,7 +125,7 @@ |
||
125 | 125 | * @param SearchResultInterface[] $results |
126 | 126 | * @param string $userId |
127 | 127 | * |
128 | - * @return array |
|
128 | + * @return SearchResultInterface[] |
|
129 | 129 | */ |
130 | 130 | private function applyAuditLog(array $results, string $userId, Context $context): array |
131 | 131 | { |
@@ -241,6 +241,9 @@ |
||
241 | 241 | ); |
242 | 242 | } |
243 | 243 | |
244 | + /** |
|
245 | + * @param string $token |
|
246 | + */ |
|
244 | 247 | private function loadCart(?string $token, CheckoutContext $context): Cart |
245 | 248 | { |
246 | 249 | if (!$token) { |
@@ -97,6 +97,9 @@ |
||
97 | 97 | $this->storeFrontCartService = $storeFrontCartService; |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param string $cartToken |
|
102 | + */ |
|
100 | 103 | public function loadMatchingRules(CheckoutContext $context, ?string $cartToken) |
101 | 104 | { |
102 | 105 | $context = clone $context; |
@@ -32,9 +32,9 @@ |
||
32 | 32 | use Shopware\Core\Framework\ORM\Write\FieldException\InvalidFieldException; |
33 | 33 | use Shopware\Core\Framework\ORM\Write\Flag\Required; |
34 | 34 | use Shopware\Core\Framework\Struct\Uuid; |
35 | -use Symfony\Component\Validator\Constraints\Choice; |
|
36 | 35 | use Symfony\Component\Validator\ConstraintViolation; |
37 | 36 | use Symfony\Component\Validator\ConstraintViolationList; |
37 | +use Symfony\Component\Validator\Constraints\Choice; |
|
38 | 38 | |
39 | 39 | class CatalogField extends FkField |
40 | 40 | { |
@@ -5,8 +5,8 @@ |
||
5 | 5 | use Psr\Log\LoggerInterface; |
6 | 6 | use Shopware\Core\Framework\Api\Response\ResponseFactory; |
7 | 7 | use Shopware\Core\Framework\ShopwareException; |
8 | -use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; |
|
9 | 8 | use Symfony\Component\HttpKernel\EventListener\ExceptionListener; |
9 | +use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; |
|
10 | 10 | use Symfony\Component\HttpKernel\Exception\HttpException; |
11 | 11 | use Symfony\Component\HttpKernel\KernelEvents; |
12 | 12 |
@@ -16,6 +16,9 @@ |
||
16 | 16 | $this->connection = $connection; |
17 | 17 | } |
18 | 18 | |
19 | + /** |
|
20 | + * @param \DateTime $timestamp |
|
21 | + */ |
|
19 | 22 | public function getIndexName(string $table, ?\DateTime $timestamp): string |
20 | 23 | { |
21 | 24 | if ($timestamp === null) { |
@@ -6,11 +6,11 @@ |
||
6 | 6 | use Shopware\Core\Defaults; |
7 | 7 | use Shopware\Core\Framework\Context; |
8 | 8 | use Shopware\Core\Framework\ORM\EntityDefinition; |
9 | +use Shopware\Core\Framework\ORM\FieldCollection; |
|
9 | 10 | use Shopware\Core\Framework\ORM\Field\AssociationInterface; |
10 | 11 | use Shopware\Core\Framework\ORM\Field\ManyToManyAssociationField; |
11 | 12 | use Shopware\Core\Framework\ORM\Field\ManyToOneAssociationField; |
12 | 13 | use Shopware\Core\Framework\ORM\Field\OneToManyAssociationField; |
13 | -use Shopware\Core\Framework\ORM\FieldCollection; |
|
14 | 14 | use Shopware\Core\Framework\ORM\Write\Flag\CascadeDelete; |
15 | 15 | use Shopware\Core\Framework\ORM\Write\Flag\RestrictDelete; |
16 | 16 | use Shopware\Core\Framework\Struct\Uuid; |
@@ -143,7 +143,7 @@ |
||
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | - * @param string|EntityDefinition $definition |
|
146 | + * @param string $definition |
|
147 | 147 | * @param array $primaryKey |
148 | 148 | * @param WriteCommandQueue $commandQueue |
149 | 149 | * |
@@ -39,6 +39,9 @@ |
||
39 | 39 | */ |
40 | 40 | private $versionReference; |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $storageName |
|
44 | + */ |
|
42 | 45 | public function __construct(string $definition, ?string $storageName = null) |
43 | 46 | { |
44 | 47 | /** @var string|EntityDefinition $definition */ |