mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-26 09:40:15 +02:00
Removed returns on addBook
and removeBook
This commit is contained in:
@@ -19,8 +19,6 @@ class BookList implements \Countable
|
|||||||
public function addBook(Book $book)
|
public function addBook(Book $book)
|
||||||
{
|
{
|
||||||
$this->books[] = $book;
|
$this->books[] = $book;
|
||||||
|
|
||||||
return $this->count();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function removeBook(Book $bookToRemove)
|
public function removeBook(Book $bookToRemove)
|
||||||
@@ -31,8 +29,6 @@ class BookList implements \Countable
|
|||||||
unset($this->books[$key]);
|
unset($this->books[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->count();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function count()
|
public function count()
|
||||||
|
Reference in New Issue
Block a user