src/SecucardConnect/ApiClientConfiguration.php
public function setAuth($auth)
    {
        $auth = strtolower($auth);

        if (!in_array($auth, [self::AUTHENTICATION_METHOD_OAUTH])) {
            throw new \InvalidArgumentException('Parameter "auth" must be filled and valid');
        }

        $this->auth = $auth;
        return $this;
    }
public function setAuth($auth)
    {
        $auth = strtolower($auth);

        if (!in_array($auth, [self::AUTHENTICATION_METHOD_OAUTH])) {
            throw new \InvalidArgumentException('Parameter "auth" must be filled and valid');
        }

        $this->auth = $auth;
        return $this;
    }
public function setAuth ( $ auth ) { $ auth = strtolower ( $ auth ) ; if ( ! in_array ( $ auth , [ self :: AUTHENTICATION_METHOD_OAUTH ] ) ) { throw new \ InvalidArgumentException ( 'Parameter "auth" must be filled and valid' ) ; } $ this -> auth = $ auth ; return $ this ; }
Define the authentication method

@param string $auth

@throws \InvalidArgumentException If some required param is missing or invalid

@return self
Define the authentication method