$STATE_MACHINE
$STATE_MACHINE :
State machine of the manager
Shopinak Order manager
apply(\Shop_Order $order, String $action, Boolean $save = false) : \Shop_Order
Apply action on order
Each order must follow CRUD actions in life cycle. Here is default action list:
\Shop_Order | $order | |
String | $action | |
Boolean | $save | to save or not the order |
transitions(\Shop_Order $order) : array
Returns possible transitions for given order
Returns possible transitions respect to currecnt state of given order.
\Shop_Order | $order |
array of transitions