src/Koldy/Db/Query/Select.php
public function innerJoin(string $table, $firstTableField, string $operator = null, string $secondTableField = null): Select
    {
        $this->joins[] = [
          'type' => 'INNER JOIN',
          'table' => $table,
          'first' => $firstTableField,
          'operator' => $operator,
          'second' => $secondTableField
        ];
        return $this;
    }
public function innerJoin(string $table, $firstTableField, string $operator = null, string $secondTableField = null): Select
    {
        $this->joins[] = [
          'type' => 'INNER JOIN',
          'table' => $table,
          'first' => $firstTableField,
          'operator' => $operator,
          'second' => $secondTableField
        ];
        return $this;
    }
public function innerJoin ( string $ table , $ firstTableField , string $ operator = null , string $ secondTableField = null ) : Select { $ this -> joins [ ] = [ 'type' => 'INNER JOIN' , 'table' => $ table , 'first' => $ firstTableField , 'operator' => $ operator , 'second' => $ secondTableField ] ; return $ this ; }
"Inner" join two tables

@param string $table
@param string|array $firstTableField
@param string $operator
@param string $secondTableField

@return Select
@example innerJoin('user u', 'u.id', '=', 'r.user_role_id')
Inner join two tables