Yoast\WP\SEO\MyYoast_Client\Application\Grants

Authorization_Code_Grant::__constructpublicYoast 1.0

Authorization_Code_Grant constructor.

Метод класса: Authorization_Code_Grant{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Authorization_Code_Grant = new Authorization_Code_Grant();
$Authorization_Code_Grant->__construct(;

Код Authorization_Code_Grant::__construct() Yoast 27.7

public function __construct(
	// phpcs:ignore PHPCompatibility.Attributes.NewAttributes.PHPNativeAttributeFound -- No-op on PHP < 8.2; redacts parameter from stack traces on PHP 8.2+.
	#[SensitiveParameter]
	string $code,
	string $redirect_uri,
	// phpcs:ignore PHPCompatibility.Attributes.NewAttributes.PHPNativeAttributeFound -- No-op on PHP < 8.2; redacts parameter from stack traces on PHP 8.2+.
	#[SensitiveParameter]
	string $code_verifier
) {
	$this->code          = $code;
	$this->redirect_uri  = $redirect_uri;
	$this->code_verifier = $code_verifier;
}