public function setAmount($amount)
    {
        if ($amount instanceof DBMoney) {
            $this->setField('Money', $amount);
        } elseif ($this->Status == 'Created' && is_numeric($amount)) {
            $this->MoneyAmount = $amount;
        }
        return $this;
    }
public function setAmount($amount)
    {
        if ($amount instanceof DBMoney) {
            $this->setField('Money', $amount);
        } elseif ($this->Status == 'Created' && is_numeric($amount)) {
            $this->MoneyAmount = $amount;
        }
        return $this;
    }
public function setAmount ( $ amount ) { if ( $ amount instanceof DBMoney ) { $ this -> setField ( 'Money' , $ amount ) ; } elseif ( $ this -> Status == 'Created' && is_numeric ( $ amount ) ) { $ this -> MoneyAmount = $ amount ; } return $ this ; }
Set the payment amount, but only when the status is 'Created'.
@param float $amount value to set the payment to
@return  Payment this object for chaining
Set the payment amount but only when the status is Created .