I like this concept, but I think it needs a little work. What if $this->condition is null? I also think andCondition() could just be merged into condition() (similar to the way Laravel handles a where statement), resulting in two methods instead of three: condition() and orCondition(). Thoughts?
I like this concept, but I think it needs a little work. What if
$this->condition
is null? I also thinkandCondition()
could just be merged intocondition()
(similar to the way Laravel handles awhere
statement), resulting in two methods instead of three:condition()
andorCondition()
. Thoughts?