public function join($table, $key_one, $operator, $key_two = null)
    {
        if (is_null($key_two)) {
            $key_two = $operator;
            $operator = '=';
        }

        $this->joins .= " JOIN {$table} ON {$key_one} {$operator} {$key_two} ";

        return $this;
    }
public function join($table, $key_one, $operator, $key_two = null)
    {
        if (is_null($key_two)) {
            $key_two = $operator;
            $operator = '=';
        }

        $this->joins .= " JOIN {$table} ON {$key_one} {$operator} {$key_two} ";

        return $this;
    }
public function join ( $ table , $ key_one , $ operator , $ key_two = null ) { if ( is_null ( $ key_two ) ) { $ key_two = $ operator ; $ operator = '=' ; } $ this -> joins .= " JOIN {$table} ON {$key_one} {$operator} {$key_two} " ; return $ this ; }
Add a join to the query
@param  string $table     table to join
@param  string $key_one   first key
@param  mixed  $operator  operator or second key
@param  string $key_two   second key if operator exists
@return CsvGenerator
Add a join to the query