function borrowBook() { $this->borrowedBook = BookSingleton::borrowBook(); if ($this->borrowedBook == NULL) { $this->haveBook = FALSE; } else { $this->haveBook = TRUE; } }
function borrowBook() { $this->borrowedBook = BookSingleton::borrowBook(); if ($this->borrowedBook == null) { $this->haveBook = false; } else { $this->haveBook = true; } }