Ejemplo n.º 1
0
 public function __construct(PaymentInstructionInterface $paymentInstruction, $amount)
 {
     $this->attentionRequired = false;
     $this->creditedAmount = 0.0;
     $this->creditingAmount = 0.0;
     $this->paymentInstruction = $paymentInstruction;
     $this->transactions = new ArrayCollection();
     $this->reversingAmount = 0.0;
     $this->state = self::STATE_NEW;
     $this->targetAmount = $amount;
     $this->createdAt = new \DateTime();
     $this->paymentInstruction->addCredit($this);
 }