vendor/payum/core/Payum/Core/Model/Payout.php line 7

Open in your IDE?
  1. <?php
  2. namespace Payum\Core\Model;
  3. /**
  4.  * Experimental. Anything could be changed in this model at any moment
  5.  */
  6. class Payout implements PayoutInterface
  7. {
  8.     /**
  9.      * @var string
  10.      */
  11.     protected $recipientId;
  12.     /**
  13.      * @var string
  14.      */
  15.     protected $recipientEmail;
  16.     /**
  17.      * @var  int
  18.      */
  19.     protected $totalAmount;
  20.     /**
  21.      * @var string
  22.      */
  23.     protected $currencyCode;
  24.     /**
  25.      * @var string
  26.      */
  27.     protected $description;
  28.     /**
  29.      * @var array
  30.      */
  31.     protected $details;
  32.     public function __construct()
  33.     {
  34.         $this->details = [];
  35.     }
  36.     /**
  37.      * @return string
  38.      */
  39.     public function getRecipientId()
  40.     {
  41.         return $this->recipientId;
  42.     }
  43.     /**
  44.      * @param string $recipientId
  45.      */
  46.     public function setRecipientId($recipientId)
  47.     {
  48.         $this->recipientId $recipientId;
  49.     }
  50.     /**
  51.      * @return string
  52.      */
  53.     public function getRecipientEmail()
  54.     {
  55.         return $this->recipientEmail;
  56.     }
  57.     /**
  58.      * @param string $recipientEmail
  59.      */
  60.     public function setRecipientEmail($recipientEmail)
  61.     {
  62.         $this->recipientEmail $recipientEmail;
  63.     }
  64.     /**
  65.      * @return int
  66.      */
  67.     public function getTotalAmount()
  68.     {
  69.         return $this->totalAmount;
  70.     }
  71.     /**
  72.      * @param int $totalAmount
  73.      */
  74.     public function setTotalAmount($totalAmount)
  75.     {
  76.         $this->totalAmount $totalAmount;
  77.     }
  78.     /**
  79.      * @return string
  80.      */
  81.     public function getCurrencyCode()
  82.     {
  83.         return $this->currencyCode;
  84.     }
  85.     /**
  86.      * @param string $currencyCode
  87.      */
  88.     public function setCurrencyCode($currencyCode)
  89.     {
  90.         $this->currencyCode $currencyCode;
  91.     }
  92.     /**
  93.      * @return string
  94.      */
  95.     public function getDescription()
  96.     {
  97.         return $this->description;
  98.     }
  99.     /**
  100.      * @param string $description
  101.      */
  102.     public function setDescription($description)
  103.     {
  104.         $this->description $description;
  105.     }
  106.     /**
  107.      * {@inheritDoc}
  108.      */
  109.     public function getDetails()
  110.     {
  111.         return $this->details;
  112.     }
  113.     /**
  114.      * {@inheritDoc}
  115.      *
  116.      * @param array|\Traversable $details
  117.      */
  118.     public function setDetails($details)
  119.     {
  120.         if ($details instanceof \Traversable) {
  121.             $details iterator_to_array($details);
  122.         }
  123.         $this->details $details;
  124.     }
  125. }