Example #1
0
 function __construct($type)
 {
     $type = strtolower($type);
     if ($type !== 'or' && $type !== 'and') {
         DB::nonSQLError('you must use either WhereClause(and) or WhereClause(or)');
     }
     $this->type = $type;
 }