@@ -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 | { |
@@ -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 | * |
@@ -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; |
@@ -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); |