Skip to content

Commit 4dece27

Browse files
author
TCB13
committed
QueryBuilder::merge() - takes a variable number of QueryBuilder instances and merges them into one;
Added SpecialFunction interface; Better PSR compliance.
1 parent 5af4dff commit 4dece27

File tree

11 files changed

+500
-425
lines changed

11 files changed

+500
-425
lines changed

src/ArrayContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class ArrayContains
5+
class ArrayContains implements SpecialFunction
66
{
77
public $name;
88
public $needle;

src/ArrayLength.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class ArrayLength
5+
class ArrayLength implements SpecialFunction
66
{
77
public $name;
88
public $alias;

src/ArrayPull.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class ArrayPull
5+
class ArrayPull implements SpecialFunction
66
{
77
protected $name;
88
protected $value;

src/ArrayPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class ArrayPush
5+
class ArrayPush implements SpecialFunction
66
{
77
protected $name;
88
protected $value;

src/Count.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class Count
5+
class Count implements SpecialFunction
66
{
77
public $name;
88
public $alias;

src/Increment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class Increment
5+
class Increment implements SpecialFunction
66
{
77
protected $name;
88
protected $by;

src/Max.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class Max
5+
class Max implements SpecialFunction
66
{
77
public $name;
88
public $alias;

src/Min.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace SequelMongo;
44

5-
class Min
5+
class Min implements SpecialFunction
66
{
77
public $name;
88
public $alias;

0 commit comments

Comments
 (0)