yii2tech\balance\ManagerInterface::transfer PHP Method

transfer() public method

Transfers amount from one account to the other one.
public transfer ( array | mixed $from, array | mixed $to, integer | float $amount, array $data = [] ) : array
$from array | mixed account ID or filter condition.
$to array | mixed account ID or filter condition.
$amount integer | float amount.
$data array extra data, which should be associated with the transaction.
return array list of created transaction IDs.
    public function transfer($from, $to, $amount, $data = []);