摘要: next = $account; } public function canPay($amount) { return $this->balance >= $amount; } public function pay($amount) { if ($this->canPay($amount)) { echo ... 阅读全文
posted @ 2017-07-18 15:08 Bin_x 阅读(126) 评论(0) 推荐(0)
摘要: door = new Door(); } public function open($password) { if ($this->authenticate($password)) { $this->door->open(); } else { echo 'The password is wrong... 阅读全文
posted @ 2017-07-18 10:06 Bin_x 阅读(95) 评论(0) 推荐(0)