function borrowBook()
 {
     $this->borrowedBook = BookSingleton::borrowBook();
     if ($this->borrowedBook == NULL) {
         $this->haveBook = FALSE;
     } else {
         $this->haveBook = TRUE;
     }
 }
Beispiel #2
0
 function borrowBook()
 {
     $this->borrowedBook = BookSingleton::borrowBook();
     if ($this->borrowedBook == null) {
         $this->haveBook = false;
     } else {
         $this->haveBook = true;
     }
 }
 function returnBook(BookSingleton $bookReturned)
 {
     self::$isLoanedOut = FALSE;
 }