Exemplo n.º 1
0
 public function save(Certificate $certificate)
 {
     $data = $certificate->getArrayCopy();
     $row = $this->getCertificate($certificate->ISIN);
     if ($row) {
         $this->tableGateway->update($data, array('ISIN' => $certificate->ISIN));
     } else {
         $this->tableGateway->insert($data);
     }
 }
Exemplo n.º 2
0
 public function getArrayCopy()
 {
     $data = parent::getArrayCopy();
     $data['bonus_barrier_level'] = $this->barrierLevel;
     return $data;
 }
 public function getArrayCopy()
 {
     $data = parent::getArrayCopy();
     $data['guarantee_participation_rate'] = $this->participationRate;
     return $data;
 }