You are here

EntityWithPaymentGatewayInterface.php in Commerce Core 8.2

File

modules/payment/src/Entity/EntityWithPaymentGatewayInterface.php
View source
<?php

namespace Drupal\commerce_payment\Entity;

use Drupal\Core\Entity\EntityInterface;

/**
 * Defines the interface for entities managed by a payment gateway.
 */
interface EntityWithPaymentGatewayInterface extends EntityInterface {

  /**
   * Gets the payment gateway.
   *
   * @return \Drupal\commerce_payment\Entity\PaymentGatewayInterface|null
   *   The payment gateway entity, or null if unknown.
   */
  public function getPaymentGateway();

  /**
   * Gets the payment gateway ID.
   *
   * @return int|null
   *   The payment gateway ID, or null if unknown.
   */
  public function getPaymentGatewayId();

}

Interfaces

Namesort descending Description
EntityWithPaymentGatewayInterface Defines the interface for entities managed by a payment gateway.