H A D | BankAccount.php | 4 protected $balance = 0; variable in BankAccount 8 return $this->balance; 11 protected function setBalance($balance) argument 13 if ($balance >= 0) { 14 $this->balance = $balance; 20 public function depositMoney($balance) argument 22 $this->setBalance($this->getBalance() + $balance); 27 public function withdrawMoney($balance) argument 29 $this->setBalance($this->getBalance() - $balance);
|