yii\db\ActiveQuery::getJoinType PHP Method

getJoinType() private method

Returns the join type based on the given join type parameter and the relation name.
private getJoinType ( string | array $joinType, string $name ) : string
$joinType string | array the given join type(s)
$name string relation name
return string the real join type
    private function getJoinType($joinType, $name)
    {
        if (is_array($joinType) && isset($joinType[$name])) {
            return $joinType[$name];
        } else {
            return is_string($joinType) ? $joinType : 'INNER JOIN';
        }
    }