vendor/payum/core/Payum/Core/Model/Payment.php line 4

Open in your IDE?
  1. <?php
  2. namespace Payum\Core\Model;
  3. class Payment implements PaymentInterfaceDirectDebitPaymentInterface
  4. {
  5.     /**
  6.      * @var string
  7.      */
  8.     protected $number;
  9.     /**
  10.      * @var string
  11.      */
  12.     protected $description;
  13.     /**
  14.      * @var string
  15.      */
  16.     protected $clientEmail;
  17.     /**
  18.      * @var string
  19.      */
  20.     protected $clientId;
  21.     /**
  22.      * @var int
  23.      */
  24.     protected $totalAmount;
  25.     /**
  26.      * @var string
  27.      */
  28.     protected $currencyCode;
  29.     /**
  30.      * @var array
  31.      */
  32.     protected $details;
  33.     /**
  34.      * @var CreditCardInterface|null
  35.      */
  36.     protected $creditCard;
  37.     /**
  38.      * @var BankAccountInterface|null
  39.      */
  40.     protected $bankAccount;
  41.     public function __construct()
  42.     {
  43.         $this->details = [];
  44.     }
  45.     /**
  46.      * {@inheritDoc}
  47.      */
  48.     public function getNumber()
  49.     {
  50.         return $this->number;
  51.     }
  52.     /**
  53.      * @param string $number
  54.      */
  55.     public function setNumber($number)
  56.     {
  57.         $this->number $number;
  58.     }
  59.     /**
  60.      * {@inheritDoc}
  61.      */
  62.     public function getDescription()
  63.     {
  64.         return $this->description;
  65.     }
  66.     /**
  67.      * @param string $description
  68.      */
  69.     public function setDescription($description)
  70.     {
  71.         $this->description $description;
  72.     }
  73.     /**
  74.      * {@inheritDoc}
  75.      */
  76.     public function getClientEmail()
  77.     {
  78.         return $this->clientEmail;
  79.     }
  80.     /**
  81.      * @param string $clientEmail
  82.      */
  83.     public function setClientEmail($clientEmail)
  84.     {
  85.         $this->clientEmail $clientEmail;
  86.     }
  87.     /**
  88.      * {@inheritDoc}
  89.      */
  90.     public function getClientId()
  91.     {
  92.         return $this->clientId;
  93.     }
  94.     /**
  95.      * @param string $clientId
  96.      */
  97.     public function setClientId($clientId)
  98.     {
  99.         $this->clientId $clientId;
  100.     }
  101.     /**
  102.      * {@inheritDoc}
  103.      */
  104.     public function getTotalAmount()
  105.     {
  106.         return $this->totalAmount;
  107.     }
  108.     /**
  109.      * @param int $totalAmount
  110.      */
  111.     public function setTotalAmount($totalAmount)
  112.     {
  113.         $this->totalAmount $totalAmount;
  114.     }
  115.     /**
  116.      * {@inheritDoc}
  117.      */
  118.     public function getCurrencyCode()
  119.     {
  120.         return $this->currencyCode;
  121.     }
  122.     /**
  123.      * @param string $currencyCode
  124.      */
  125.     public function setCurrencyCode($currencyCode)
  126.     {
  127.         $this->currencyCode $currencyCode;
  128.     }
  129.     /**
  130.      * {@inheritDoc}
  131.      */
  132.     public function getDetails()
  133.     {
  134.         return $this->details;
  135.     }
  136.     /**
  137.      * {@inheritDoc}
  138.      *
  139.      * @param array|\Traversable $details
  140.      */
  141.     public function setDetails($details)
  142.     {
  143.         if ($details instanceof \Traversable) {
  144.             $details iterator_to_array($details);
  145.         }
  146.         $this->details $details;
  147.     }
  148.     /**
  149.      * @return CreditCardInterface|null
  150.      */
  151.     public function getCreditCard()
  152.     {
  153.         return $this->creditCard;
  154.     }
  155.     /**
  156.      * @param CreditCardInterface|null $creditCard
  157.      */
  158.     public function setCreditCard(?CreditCardInterface $creditCard null)
  159.     {
  160.         $this->creditCard $creditCard;
  161.     }
  162.     /**
  163.      * @return BankAccountInterface|null
  164.      */
  165.     public function getBankAccount()
  166.     {
  167.         return $this->bankAccount;
  168.     }
  169.     /**
  170.      * @param BankAccountInterface|null $bankAccount
  171.      */
  172.     public function setBankAccount(?BankAccountInterface $bankAccount null)
  173.     {
  174.         $this->bankAccount $bankAccount;
  175.     }
  176. }