code = $code; $this->redirect_uri = $redirect_uri; $this->code_verifier = $code_verifier; } /** * Returns the grant type identifier. * * @return string */ public function get_grant_type(): string { return 'authorization_code'; } /** * Returns the grant-specific parameters. * * @return array */ public function get_grant_params(): array { return [ 'code' => $this->code, 'redirect_uri' => $this->redirect_uri, 'code_verifier' => $this->code_verifier, ]; } }