@@ -41,6 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected $possibleKey; |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $possibleKey |
|
| 46 | + */ |
|
| 44 | 47 | public function __construct(string $propertyName, string $referenceClass, $possibleKey = null) |
| 45 | 48 | { |
| 46 | 49 | $this->referenceClass = $referenceClass; |
@@ -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); |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Shopware\Storefront\Controller; |
| 4 | 4 | |
| 5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 6 | +use Shopware\Core\Checkout\CartBridge\Voucher\VoucherProcessor; |
|
| 6 | 7 | use Shopware\Core\Checkout\Cart\Exception\LineItemNotFoundException; |
| 7 | 8 | use Shopware\Core\Checkout\Cart\LineItem\LineItem; |
| 8 | 9 | use Shopware\Core\Checkout\Cart\Storefront\CartService; |
| 9 | -use Shopware\Core\Checkout\CartBridge\Voucher\VoucherProcessor; |
|
| 10 | 10 | use Shopware\Core\Checkout\CheckoutContext; |
| 11 | 11 | use Shopware\Core\Content\Product\Cart\ProductProcessor; |
| 12 | 12 | use Symfony\Component\HttpFoundation\AcceptHeader; |
@@ -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 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * and populated in any number of different ways when the user object |
| 60 | 60 | * is created. |
| 61 | 61 | * |
| 62 | - * @return (Role|string)[] The user roles |
|
| 62 | + * @return string[] The user roles |
|
| 63 | 63 | */ |
| 64 | 64 | public function getRoles() |
| 65 | 65 | { |
@@ -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 | |