Merge pull request #137 from docteurklein/fluent_query_expr
added fluent pattern to Query\Expr\Base::add* methods
This commit is contained in:
commit
18fd29613c
@ -51,6 +51,8 @@ abstract class Base
|
|||||||
foreach ((array) $args as $arg) {
|
foreach ((array) $args as $arg) {
|
||||||
$this->add($arg);
|
$this->add($arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add($arg)
|
public function add($arg)
|
||||||
@ -67,6 +69,8 @@ abstract class Base
|
|||||||
|
|
||||||
$this->_parts[] = $arg;
|
$this->_parts[] = $arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function count()
|
public function count()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user