Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | trait ClientTrait |
||
16 | { |
||
17 | protected string $name; |
||
18 | |||
19 | /** |
||
20 | * @var string|string[] |
||
21 | */ |
||
22 | protected string|array $redirectUri; |
||
23 | |||
24 | protected bool $isConfidential = false; |
||
25 | |||
26 | /** |
||
27 | * Get the client's name. |
||
28 | * |
||
29 | * |
||
30 | * @codeCoverageIgnore |
||
31 | */ |
||
32 | public function getName(): string |
||
33 | { |
||
34 | return $this->name; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Returns the registered redirect URI (as a string). Alternatively return |
||
39 | * an indexed array of redirect URIs. |
||
40 | * |
||
41 | * @return string|string[] |
||
42 | */ |
||
43 | 44 | public function getRedirectUri(): string|array |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * Returns true if the client is confidential. |
||
50 | */ |
||
51 | 32 | public function isConfidential(): bool |
|
54 | } |
||
55 | } |
||
56 |