| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| 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 | public function __construct(string $name) |
||
| 36 | { |
||
| 37 | $this->name = $name; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string ...$scopes |
||
| 42 | * |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | public function setScopes(string ...$scopes) : void |
||
| 48 | } |
||
| 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 | public function toArray() : array |
||
| 60 |