Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
19 | class SecurityRequirement implements ObjectInterface |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $name; |
||
26 | |||
27 | /** |
||
28 | * @var string[] |
||
29 | */ |
||
30 | private $scopes = []; |
||
31 | |||
32 | /** |
||
33 | * @param string $name |
||
34 | */ |
||
35 | 3 | public function __construct(string $name) |
|
36 | { |
||
37 | 3 | $this->name = $name; |
|
38 | 3 | } |
|
39 | |||
40 | /** |
||
41 | * @param string ...$scopes |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | 1 | public function setScopes(string ...$scopes) : void |
|
48 | 1 | } |
|
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | * |
||
53 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#security-requirement-object-examples |
||
54 | */ |
||
55 | 2 | public function toArray() : array |
|
60 |