vendor/shopware/core/Checkout/Payment/PaymentMethodEntity.php line 17

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Checkout\Payment;
  3. use Shopware\Core\Checkout\Customer\CustomerCollection;
  4. use Shopware\Core\Checkout\Order\Aggregate\OrderTransaction\OrderTransactionCollection;
  5. use Shopware\Core\Checkout\Payment\Aggregate\PaymentMethodTranslation\PaymentMethodTranslationCollection;
  6. use Shopware\Core\Content\Media\MediaEntity;
  7. use Shopware\Core\Content\Rule\RuleEntity;
  8. use Shopware\Core\Framework\App\Aggregate\AppPaymentMethod\AppPaymentMethodEntity;
  9. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  10. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  11. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  12. use Shopware\Core\Framework\Plugin\PluginEntity;
  13. use Shopware\Core\System\SalesChannel\SalesChannelCollection;
  14. class PaymentMethodEntity extends Entity
  15. {
  16.     use EntityIdTrait;
  17.     use EntityCustomFieldsTrait;
  18.     /**
  19.      * @var string|null
  20.      */
  21.     protected $pluginId;
  22.     /**
  23.      * @var string
  24.      */
  25.     protected $handlerIdentifier;
  26.     /**
  27.      * @var string|null
  28.      */
  29.     protected $name;
  30.     /**
  31.      * @var string|null
  32.      */
  33.     protected $distinguishableName;
  34.     /**
  35.      * @var string|null
  36.      */
  37.     protected $description;
  38.     /**
  39.      * @var int
  40.      */
  41.     protected $position;
  42.     /**
  43.      * @var bool
  44.      */
  45.     protected $active;
  46.     /**
  47.      * @var bool
  48.      */
  49.     protected $afterOrderEnabled;
  50.     /**
  51.      * @var PluginEntity|null
  52.      */
  53.     protected $plugin;
  54.     /**
  55.      * @var PaymentMethodTranslationCollection|null
  56.      */
  57.     protected $translations;
  58.     /**
  59.      * @var OrderTransactionCollection|null
  60.      */
  61.     protected $orderTransactions;
  62.     /**
  63.      * @var CustomerCollection|null
  64.      */
  65.     protected $customers;
  66.     /**
  67.      * @var SalesChannelCollection|null
  68.      */
  69.     protected $salesChannelDefaultAssignments;
  70.     /**
  71.      * @var SalesChannelCollection|null
  72.      */
  73.     protected $salesChannels;
  74.     /**
  75.      * @var RuleEntity|null
  76.      */
  77.     protected $availabilityRule;
  78.     /**
  79.      * @var string|null
  80.      */
  81.     protected $availabilityRuleId;
  82.     /**
  83.      * @var string|null
  84.      */
  85.     protected $mediaId;
  86.     /**
  87.      * @var MediaEntity|null
  88.      */
  89.     protected $media;
  90.     /**
  91.      * @var string
  92.      */
  93.     protected $formattedHandlerIdentifier;
  94.     /**
  95.      * @var string|null
  96.      */
  97.     protected $shortName;
  98.     /**
  99.      * @var AppPaymentMethodEntity|null
  100.      */
  101.     protected $appPaymentMethod;
  102.     protected bool $synchronous false;
  103.     protected bool $asynchronous false;
  104.     protected bool $prepared false;
  105.     public function getPluginId(): ?string
  106.     {
  107.         return $this->pluginId;
  108.     }
  109.     public function setPluginId(?string $pluginId): void
  110.     {
  111.         $this->pluginId $pluginId;
  112.     }
  113.     public function getHandlerIdentifier(): string
  114.     {
  115.         return $this->handlerIdentifier;
  116.     }
  117.     public function setHandlerIdentifier(string $handlerIdentifier): void
  118.     {
  119.         $this->handlerIdentifier $handlerIdentifier;
  120.     }
  121.     public function setFormattedHandlerIdentifier(string $formattedHandlerIdentifier): void
  122.     {
  123.         $this->formattedHandlerIdentifier $formattedHandlerIdentifier;
  124.     }
  125.     public function getFormattedHandlerIdentifier(): string
  126.     {
  127.         return $this->formattedHandlerIdentifier;
  128.     }
  129.     public function getName(): ?string
  130.     {
  131.         return $this->name;
  132.     }
  133.     public function setName(string $name): void
  134.     {
  135.         $this->name $name;
  136.     }
  137.     public function getDistinguishableName(): ?string
  138.     {
  139.         return $this->distinguishableName;
  140.     }
  141.     public function setDistinguishableName(?string $distinguishableName): void
  142.     {
  143.         $this->distinguishableName $distinguishableName;
  144.     }
  145.     public function getDescription(): ?string
  146.     {
  147.         return $this->description;
  148.     }
  149.     public function setDescription(?string $description): void
  150.     {
  151.         $this->description $description;
  152.     }
  153.     public function getPosition(): int
  154.     {
  155.         return $this->position;
  156.     }
  157.     public function setPosition(int $position): void
  158.     {
  159.         $this->position $position;
  160.     }
  161.     public function getActive(): bool
  162.     {
  163.         return $this->active;
  164.     }
  165.     public function setActive(bool $active): void
  166.     {
  167.         $this->active $active;
  168.     }
  169.     public function getPlugin(): ?PluginEntity
  170.     {
  171.         return $this->plugin;
  172.     }
  173.     public function setPlugin(PluginEntity $plugin): void
  174.     {
  175.         $this->plugin $plugin;
  176.     }
  177.     public function getTranslations(): ?PaymentMethodTranslationCollection
  178.     {
  179.         return $this->translations;
  180.     }
  181.     public function setTranslations(PaymentMethodTranslationCollection $translations): void
  182.     {
  183.         $this->translations $translations;
  184.     }
  185.     public function getOrderTransactions(): ?OrderTransactionCollection
  186.     {
  187.         return $this->orderTransactions;
  188.     }
  189.     public function setOrderTransactions(OrderTransactionCollection $orderTransactions): void
  190.     {
  191.         $this->orderTransactions $orderTransactions;
  192.     }
  193.     public function getCustomers(): ?CustomerCollection
  194.     {
  195.         return $this->customers;
  196.     }
  197.     public function setCustomers(CustomerCollection $customers): void
  198.     {
  199.         $this->customers $customers;
  200.     }
  201.     public function getSalesChannelDefaultAssignments(): ?SalesChannelCollection
  202.     {
  203.         return $this->salesChannelDefaultAssignments;
  204.     }
  205.     public function setSalesChannelDefaultAssignments(SalesChannelCollection $salesChannelDefaultAssignments): void
  206.     {
  207.         $this->salesChannelDefaultAssignments $salesChannelDefaultAssignments;
  208.     }
  209.     public function getSalesChannels(): ?SalesChannelCollection
  210.     {
  211.         return $this->salesChannels;
  212.     }
  213.     public function setSalesChannels(SalesChannelCollection $salesChannels): void
  214.     {
  215.         $this->salesChannels $salesChannels;
  216.     }
  217.     public function getAvailabilityRule(): ?RuleEntity
  218.     {
  219.         return $this->availabilityRule;
  220.     }
  221.     public function setAvailabilityRule(?RuleEntity $availabilityRule): void
  222.     {
  223.         $this->availabilityRule $availabilityRule;
  224.     }
  225.     public function getAvailabilityRuleId(): ?string
  226.     {
  227.         return $this->availabilityRuleId;
  228.     }
  229.     public function setAvailabilityRuleId(?string $availabilityRuleId): void
  230.     {
  231.         $this->availabilityRuleId $availabilityRuleId;
  232.     }
  233.     public function getMediaId(): ?string
  234.     {
  235.         return $this->mediaId;
  236.     }
  237.     public function setMediaId(?string $mediaId): void
  238.     {
  239.         $this->mediaId $mediaId;
  240.     }
  241.     public function getMedia(): ?MediaEntity
  242.     {
  243.         return $this->media;
  244.     }
  245.     public function setMedia(?MediaEntity $media): void
  246.     {
  247.         $this->media $media;
  248.     }
  249.     public function getAfterOrderEnabled(): bool
  250.     {
  251.         return $this->afterOrderEnabled;
  252.     }
  253.     public function setAfterOrderEnabled(bool $afterOrderEnabled): void
  254.     {
  255.         $this->afterOrderEnabled $afterOrderEnabled;
  256.     }
  257.     public function getShortName(): ?string
  258.     {
  259.         return $this->shortName;
  260.     }
  261.     public function setShortName(?string $shortName): void
  262.     {
  263.         $this->shortName $shortName;
  264.     }
  265.     public function getAppPaymentMethod(): ?AppPaymentMethodEntity
  266.     {
  267.         return $this->appPaymentMethod;
  268.     }
  269.     public function setAppPaymentMethod(?AppPaymentMethodEntity $appPaymentMethod): void
  270.     {
  271.         $this->appPaymentMethod $appPaymentMethod;
  272.     }
  273.     public function isSynchronous(): bool
  274.     {
  275.         return $this->synchronous;
  276.     }
  277.     public function setSynchronous(bool $synchronous): void
  278.     {
  279.         $this->synchronous $synchronous;
  280.     }
  281.     public function isAsynchronous(): bool
  282.     {
  283.         return $this->asynchronous;
  284.     }
  285.     public function setAsynchronous(bool $asynchronous): void
  286.     {
  287.         $this->asynchronous $asynchronous;
  288.     }
  289.     public function isPrepared(): bool
  290.     {
  291.         return $this->prepared;
  292.     }
  293.     public function setPrepared(bool $prepared): void
  294.     {
  295.         $this->prepared $prepared;
  296.     }
  297. }