1
0
mirror of synced 2024-11-28 00:06:06 +03:00

Add orders merge technique

This commit is contained in:
Vitaliy Chesnokov 2020-01-20 18:32:25 +03:00
parent 73b5b8e1df
commit 0f05f84d04
No known key found for this signature in database
GPG Key ID: B5EF49A6594564CE

View File

@ -42,7 +42,7 @@ trait Orders
*/ */
public function ordersCombine($order, $resultOrder, $technique = 'ours') public function ordersCombine($order, $resultOrder, $technique = 'ours')
{ {
$techniques = ['ours', 'summ', 'theirs']; $techniques = ['ours', 'summ', 'theirs', 'merge'];
if (!count($order) || !count($resultOrder)) { if (!count($order) || !count($resultOrder)) {
throw new \InvalidArgumentException( throw new \InvalidArgumentException(