Example #1
0
 /**
  * @param int $amount
  * @param string $checkNumber
  * @param DateTime $checkDate
  * @param string $memo
  */
 public function __construct($amount, $checkNumber, $checkDate, $memo = null)
 {
     parent::__construct();
     $this->amount = (int) $amount;
     $this->checkNumber = (string) $checkNumber;
     $this->checkDate = $checkDate;
     $this->memo = (string) $memo;
 }
Example #2
0
 /**
  * @param int $amount
  */
 public function __construct($amount)
 {
     parent::__construct();
     $this->amount = (int) $amount;
 }
Example #3
0
 public function __construct(ChargeResponse $chargeResponse)
 {
     parent::__construct();
     $this->amount = $chargeResponse->getAmount();
     $this->chargeResponse = $chargeResponse;
 }