Improved safe_var_dump(), Inventory::addItem() Inventory::removeItem() using argument unpacking

This commit is contained in:
Shoghi Cervantes
2014-08-27 12:29:04 +02:00
parent 759d7e2545
commit 8e9da9c84e
3 changed files with 6 additions and 8 deletions

View File

@ -73,7 +73,7 @@ interface Inventory{
*
* @return Item[]
*/
public function addItem();
public function addItem(...$slots);
/**
* Checks if a given Item can be added to the inventory
@ -92,7 +92,7 @@ interface Inventory{
*
* @return Item[]
*/
public function removeItem();
public function removeItem(...$slots);
/**
* @return Item[]