OAuth2RequestInterface::withGrantParams()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\OAuth2\HttpClient\Request;
6
7
use Psr\Http\Message\RequestInterface;
8
9
interface OAuth2RequestInterface extends RequestInterface
10
{
11
    /**
12
     * Returns grant parameters
13
     *
14
     * @return array<string, mixed>
0 ignored issues
show
Documentation introduced by
The doc-type array<string, could not be parsed: Expected ">" at position 5, but found "end of type". (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
15
     */
16
    public function getGrantParams(): array;
17
18
    /**
19
     * Set grant parameters
20
     *
21
     * @param array<string, mixed> $grantParams
22
     *
23
     * @return self
24
     */
25
    public function withGrantParams(array $grantParams): self;
26
27
    /**
28
     * Set a grant parameter
29
     *
30
     * @param string $name
31
     * @param mixed $value
32
     *
33
     * @return self
34
     */
35
    public function withGrantParam(string $name, $value): self;
36
37
    /**
38
     * Remove a single grant parameter
39
     *
40
     * @param string $name
41
     *
42
     * @return self
43
     */
44
    public function withoutGrantParam(string $name): self;
45
}
46