/** * @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; }
/** * @param int $amount */ public function __construct($amount) { parent::__construct(); $this->amount = (int) $amount; }
public function __construct(ChargeResponse $chargeResponse) { parent::__construct(); $this->amount = $chargeResponse->getAmount(); $this->chargeResponse = $chargeResponse; }