Yoast\WP\SEO\MyYoast_Client\Domain
Auth_Flow_State::__construct
Auth_Flow_State constructor.
Метод класса: Auth_Flow_State{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Auth_Flow_State = new Auth_Flow_State(); $Auth_Flow_State->__construct( $code_verifier, $state, ?string $nonce, $redirect_uri, ?string $return_url, $resource_indicator );
- $code_verifier(строка) (обязательный)
- The PKCE code verifier.
- $state(строка) (обязательный)
- The CSRF state parameter.
- ?string $nonce(обязательный)
- .
- $redirect_uri(строка) (обязательный)
- The callback redirect URI.
- ?string $return_url(обязательный)
- .
- $resource_indicator(Resource_Indicator) (обязательный)
- The resource indicator (RFC 8707) this flow targets. Use Resource_Indicator::default() for the default resource.
Код Auth_Flow_State::__construct() Auth Flow State:: construct Yoast 28.3
public function __construct(
string $code_verifier,
string $state,
?string $nonce,
string $redirect_uri,
?string $return_url,
Resource_Indicator $resource_indicator
) {
if ( $code_verifier === '' || $state === '' || $redirect_uri === '' ) {
throw new InvalidArgumentException( 'Auth_Flow_State requires non-empty code_verifier, state, and redirect_uri.' );
}
$this->code_verifier = $code_verifier;
$this->state = $state;
$this->nonce = $nonce;
$this->redirect_uri = $redirect_uri;
$this->return_url = $return_url;
$this->resource_indicator = $resource_indicator;
}