@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |
213 | - * @param string|EntityDefinition $definition |
|
213 | + * @param EntityDefinition $definition |
|
214 | 214 | * |
215 | 215 | * @return FieldCollection |
216 | 216 | */ |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | /** |
233 | 233 | * @param array $rawData |
234 | - * @param string|EntityDefinition $definition |
|
234 | + * @param EntityDefinition $definition |
|
235 | 235 | * @param FieldExceptionStack $exceptionStack |
236 | 236 | * @param FieldExtenderCollection $extender |
237 | 237 | * @param FieldCollection $fields |
@@ -25,13 +25,13 @@ |
||
25 | 25 | namespace Shopware\Core\Framework\ORM\Write; |
26 | 26 | |
27 | 27 | use Shopware\Core\Framework\ORM\EntityDefinition; |
28 | +use Shopware\Core\Framework\ORM\FieldCollection; |
|
28 | 29 | use Shopware\Core\Framework\ORM\Field\ChildrenAssociationField; |
29 | 30 | use Shopware\Core\Framework\ORM\Field\DateField; |
30 | 31 | use Shopware\Core\Framework\ORM\Field\Field; |
31 | 32 | use Shopware\Core\Framework\ORM\Field\FkField; |
32 | 33 | use Shopware\Core\Framework\ORM\Field\ManyToOneAssociationField; |
33 | 34 | use Shopware\Core\Framework\ORM\Field\ReferenceField; |
34 | -use Shopware\Core\Framework\ORM\FieldCollection; |
|
35 | 35 | use Shopware\Core\Framework\ORM\Write\Command\InsertCommand; |
36 | 36 | use Shopware\Core\Framework\ORM\Write\Command\UpdateCommand; |
37 | 37 | use Shopware\Core\Framework\ORM\Write\Command\WriteCommandQueue; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * B) For an API token authentication system, you return a 401 response |
40 | 40 | * return new Response('Auth header required', 401); |
41 | 41 | * |
42 | - * @param Request $request The request that resulted in an AuthenticationException |
|
42 | + * @param SymfonyRequest $request The request that resulted in an AuthenticationException |
|
43 | 43 | * @param AuthenticationException $authException The exception that started the authentication process |
44 | 44 | * |
45 | 45 | * @return Response |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * return array('api_key' => $request->headers->get('X-API-TOKEN')); |
86 | 86 | * |
87 | - * @param Request $request |
|
87 | + * @param SymfonyRequest $request |
|
88 | 88 | * |
89 | 89 | * @throws \UnexpectedValueException If null is returned |
90 | 90 | * |
@@ -90,7 +90,7 @@ |
||
90 | 90 | * |
91 | 91 | * @throws InvalidArgumentException |
92 | 92 | * |
93 | - * @return object |
|
93 | + * @return Struct |
|
94 | 94 | */ |
95 | 95 | private function createInstance(string $class, array $arguments) |
96 | 96 | { |
@@ -121,6 +121,9 @@ |
||
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param CalculatedLineItemInterface $instance |
|
126 | + */ |
|
124 | 127 | private function getClassName($instance) |
125 | 128 | { |
126 | 129 | $name = get_class($instance); |
@@ -36,6 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | /** |
38 | 38 | * {@inheritdoc} |
39 | + * @param string $view |
|
39 | 40 | */ |
40 | 41 | protected function renderStorefront($view, array $parameters = [], Response $response = null): Response |
41 | 42 | { |
@@ -9,8 +9,8 @@ |
||
9 | 9 | use Shopware\Core\PlatformRequest; |
10 | 10 | use Shopware\Core\System\User\UserDefinition; |
11 | 11 | use Symfony\Component\HttpFoundation\Request; |
12 | -use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; |
|
13 | 12 | use Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata; |
13 | +use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface; |
|
14 | 14 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
15 | 15 | use Symfony\Component\Security\Core\User\UserInterface; |
16 | 16 |
@@ -11,6 +11,7 @@ discard block |
||
11 | 11 | use Shopware\Core\Framework\ORM\Entity; |
12 | 12 | use Shopware\Core\Framework\ORM\EntityDefinition; |
13 | 13 | use Shopware\Core\Framework\ORM\Event\EntityWrittenContainerEvent; |
14 | +use Shopware\Core\Framework\ORM\FieldCollection; |
|
14 | 15 | use Shopware\Core\Framework\ORM\Field\AssociationInterface; |
15 | 16 | use Shopware\Core\Framework\ORM\Field\Field; |
16 | 17 | use Shopware\Core\Framework\ORM\Field\ManyToManyAssociationField; |
@@ -19,7 +20,6 @@ discard block |
||
19 | 20 | use Shopware\Core\Framework\ORM\Field\ReferenceVersionField; |
20 | 21 | use Shopware\Core\Framework\ORM\Field\TenantIdField; |
21 | 22 | use Shopware\Core\Framework\ORM\Field\VersionField; |
22 | -use Shopware\Core\Framework\ORM\FieldCollection; |
|
23 | 23 | use Shopware\Core\Framework\ORM\Read\ReadCriteria; |
24 | 24 | use Shopware\Core\Framework\ORM\RepositoryInterface; |
25 | 25 | use Shopware\Core\Framework\ORM\Search\Criteria; |
@@ -170,6 +170,9 @@ discard block |
||
170 | 170 | return $collection; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param ReadCriteria $criteria |
|
175 | + */ |
|
173 | 176 | private function joinBasic(?Criteria $criteria, string $definition, Context $context, string $root, QueryBuilder $query, FieldCollection $fields, bool $raw = false): void |
174 | 177 | { |
175 | 178 | /** @var EntityDefinition $definition */ |
@@ -484,6 +487,9 @@ discard block |
||
484 | 487 | return false; |
485 | 488 | } |
486 | 489 | |
490 | + /** |
|
491 | + * @param EntityCollection $details |
|
492 | + */ |
|
487 | 493 | private function removeInheritance(string $definition, $details): void |
488 | 494 | { |
489 | 495 | /** @var string|EntityDefinition $definition */ |
@@ -7,6 +7,7 @@ discard block |
||
7 | 7 | use Shopware\Core\Framework\ORM\Entity; |
8 | 8 | use Shopware\Core\Framework\ORM\EntityCollection; |
9 | 9 | use Shopware\Core\Framework\ORM\EntityDefinition; |
10 | +use Shopware\Core\Framework\ORM\FieldCollection; |
|
10 | 11 | use Shopware\Core\Framework\ORM\Field\AssociationInterface; |
11 | 12 | use Shopware\Core\Framework\ORM\Field\ChildrenAssociationField; |
12 | 13 | use Shopware\Core\Framework\ORM\Field\Field; |
@@ -14,12 +15,11 @@ discard block |
||
14 | 15 | use Shopware\Core\Framework\ORM\Field\ManyToOneAssociationField; |
15 | 16 | use Shopware\Core\Framework\ORM\Field\OneToManyAssociationField; |
16 | 17 | use Shopware\Core\Framework\ORM\Field\TranslatedField; |
17 | -use Shopware\Core\Framework\ORM\FieldCollection; |
|
18 | 18 | use Shopware\Core\Framework\ORM\Read\EntityReaderInterface; |
19 | 19 | use Shopware\Core\Framework\ORM\Read\ReadCriteria; |
20 | 20 | use Shopware\Core\Framework\ORM\Search\Criteria; |
21 | -use Shopware\Core\Framework\ORM\Search\EntitySearcherInterface; |
|
22 | 21 | use Shopware\Core\Framework\ORM\Search\EntitySearchResult; |
22 | +use Shopware\Core\Framework\ORM\Search\EntitySearcherInterface; |
|
23 | 23 | use Shopware\Core\Framework\ORM\Search\Parser\SqlQueryParser; |
24 | 24 | use Shopware\Core\Framework\ORM\Search\Query\TermsQuery; |
25 | 25 | use Shopware\Core\Framework\ORM\Search\Sorting\FieldSorting; |
@@ -13,13 +13,13 @@ |
||
13 | 13 | use Shopware\Core\Framework\ORM\EntityDefinition; |
14 | 14 | use Shopware\Core\Framework\ORM\Event\EntityWrittenContainerEvent; |
15 | 15 | use Shopware\Core\Framework\ORM\Event\EntityWrittenEvent; |
16 | +use Shopware\Core\Framework\ORM\FieldCollection; |
|
16 | 17 | use Shopware\Core\Framework\ORM\Field\AssociationInterface; |
17 | 18 | use Shopware\Core\Framework\ORM\Field\Field; |
18 | 19 | use Shopware\Core\Framework\ORM\Field\ManyToManyAssociationField; |
19 | 20 | use Shopware\Core\Framework\ORM\Field\ManyToOneAssociationField; |
20 | 21 | use Shopware\Core\Framework\ORM\Field\OneToManyAssociationField; |
21 | 22 | use Shopware\Core\Framework\ORM\Field\TranslationsAssociationField; |
22 | -use Shopware\Core\Framework\ORM\FieldCollection; |
|
23 | 23 | use Shopware\Core\Framework\ORM\Write\Flag\Inherited; |
24 | 24 | use Shopware\Core\Framework\Struct\Uuid; |
25 | 25 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |