public function setDefaultMode(string $mode = null) : RauthInterface
    {
        if (!in_array($mode, self::MODES)) {
            throw new \InvalidArgumentException(
                'Mode ' . $mode . ' not accepted!'
            );
        }
        $this->defaultMode = $mode;

        return $this;
    }
public function setDefaultMode(string $mode = null) : RauthInterface
    {
        if (!in_array($mode, self::MODES)) {
            throw new \InvalidArgumentException(
                'Mode ' . $mode . ' not accepted!'
            );
        }
        $this->defaultMode = $mode;

        return $this;
    }
public function setDefaultMode ( string $ mode = null ) : RauthInterface { if ( ! in_array ( $ mode , self :: MODES ) ) { throw new \ InvalidArgumentException ( 'Mode ' . $ mode . ' not accepted!' ) ; } $ this -> defaultMode = $ mode ; return $ this ; }
Set a default mode for auth blocks without one defined.

Default is MODE_OR

@param string $mode
@return RauthInterface
Set a default mode for auth blocks without one defined .