public function joinType($type = null)
    {
        deprecationWarning(
            get_called_class() . '::joinType() is deprecated. ' .
            'Use setJoinType()/getJoinType() instead.'
        );
        if ($type !== null) {
            $this->setJoinType($type);
        }

        return $this->getJoinType();
    }
public function joinType($type = null)
    {
        deprecationWarning(
            get_called_class() . '::joinType() is deprecated. ' .
            'Use setJoinType()/getJoinType() instead.'
        );
        if ($type !== null) {
            $this->setJoinType($type);
        }

        return $this->getJoinType();
    }
public function joinType ( $ type = null ) { deprecationWarning ( get_called_class ( ) . '::joinType() is deprecated. ' . 'Use setJoinType()/getJoinType() instead.' ) ; if ( $ type !== null ) { $ this -> setJoinType ( $ type ) ; } return $ this -> getJoinType ( ) ; }
Sets the type of join to be used when adding the association to a query.
If no arguments are passed, the currently configured type is returned.

@deprecated 3.4.0 Use setJoinType()/getJoinType() instead.
@param string|null $type the join type to be used (e.g. INNER)
@return string
Sets the type of join to be used when adding the association to a query . If no arguments are passed the currently configured type is returned .