InventoryTransaction: Added a warning about ordering

This commit is contained in:
Dylan K. Taylor 2019-06-10 16:54:45 +01:00
parent adb78679c5
commit 6756203aec

View File

@ -75,6 +75,11 @@ class InventoryTransaction{
} }
/** /**
* Returns an **unordered** set of actions involved in this transaction.
*
* WARNING: This system is **explicitly designed NOT to care about ordering**. Any order seen in this set has NO
* significance and should not be relied on.
*
* @return InventoryAction[] * @return InventoryAction[]
*/ */
public function getActions() : array{ public function getActions() : array{
@ -271,6 +276,8 @@ class InventoryTransaction{
return false; return false;
} }
$this->shuffleActions();
$this->validate(); $this->validate();
if(!$this->callExecuteEvent()){ if(!$this->callExecuteEvent()){