/** * OtherNotification constructor. * * @param float $amount * @param string $currency * @param string $label * @param int $hipayId * @param DateTime $date */ public function __construct($hipayId, DateTime $date, $amount, $currency, $label) { parent::__construct($hipayId, $date); $this->amount = $amount; $this->currency = $currency; $this->label = $label; }
/** * WithdrawNotification constructor. * * @param OperationInterface $operation * @param int $hipayId * @param DateTime $date */ public function __construct($hipayId, DateTime $date, OperationInterface $operation) { parent::__construct($hipayId, $date); $this->operation = $operation; }