vendor/shopware/core/Framework/DataAbstractionLayer/EntityRepositoryForwardCompatibilityDecorator.php line 51

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\DataAbstractionLayer;
  3. use Shopware\Core\Framework\Context;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Event\EntityWrittenContainerEvent;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Search\AggregationResult\AggregationResultCollection;
  6. use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
  7. use Shopware\Core\Framework\DataAbstractionLayer\Search\EntitySearchResult;
  8. use Shopware\Core\Framework\DataAbstractionLayer\Search\IdSearchResult;
  9. use Shopware\Core\Framework\DataAbstractionLayer\Write\CloneBehavior;
  10. use Shopware\Core\Framework\Log\Package;
  11. /**
  12.  * @deprecated tag:v6.5.0 - reason:remove-decorator - will be removed, as it is not needed anymore after EntityRepositoryInterface removal
  13.  *
  14.  * @internal
  15.  */
  16. #[Package('core')] // @phpstan-ignore-line the decorator extends @final class
  17. class EntityRepositoryForwardCompatibilityDecorator extends EntityRepository implements EntityRepositoryInterface
  18. {
  19.     private EntityRepositoryInterface $inner;
  20.     public function __construct(EntityRepositoryInterface $inner)
  21.     {
  22.         $this->inner $inner;
  23.     }
  24.     public function getDefinition(): EntityDefinition
  25.     {
  26.         return $this->inner->getDefinition();
  27.     }
  28.     public function aggregate(Criteria $criteriaContext $context): AggregationResultCollection
  29.     {
  30.         return $this->inner->aggregate($criteria$context);
  31.     }
  32.     public function searchIds(Criteria $criteriaContext $context): IdSearchResult
  33.     {
  34.         return $this->inner->searchIds($criteria$context);
  35.     }
  36.     public function clone(string $idContext $context, ?string $newId null, ?CloneBehavior $behavior null): EntityWrittenContainerEvent
  37.     {
  38.         return $this->inner->clone($id$context$newId$behavior);
  39.     }
  40.     public function search(Criteria $criteriaContext $context): EntitySearchResult
  41.     {
  42.         return $this->inner->search($criteria$context);
  43.     }
  44.     public function update(array $dataContext $context): EntityWrittenContainerEvent
  45.     {
  46.         return $this->inner->update($data$context);
  47.     }
  48.     public function upsert(array $dataContext $context): EntityWrittenContainerEvent
  49.     {
  50.         return $this->inner->upsert($data$context);
  51.     }
  52.     public function create(array $dataContext $context): EntityWrittenContainerEvent
  53.     {
  54.         return $this->inner->create($data$context);
  55.     }
  56.     public function delete(array $idsContext $context): EntityWrittenContainerEvent
  57.     {
  58.         return $this->inner->delete($ids$context);
  59.     }
  60.     public function createVersion(string $idContext $context, ?string $name null, ?string $versionId null): string
  61.     {
  62.         return $this->inner->createVersion($id$context$name$versionId);
  63.     }
  64.     public function merge(string $versionIdContext $context): void
  65.     {
  66.         $this->inner->merge($versionId$context);
  67.     }
  68. }