| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class ApiKeyTest |
||
| 17 | { |
||
| 18 | /** @var string */ |
||
| 19 | private $type; |
||
| 20 | |||
| 21 | /** @var bool */ |
||
| 22 | private $key; |
||
| 23 | |||
| 24 | /** @var MethodCollection|null */ |
||
| 25 | private $methods; |
||
| 26 | |||
| 27 | public function __construct(string $type, bool $key = false, $methods = null) |
||
| 28 | { |
||
| 29 | $this->type = $type; |
||
| 30 | $this->key = $key; |
||
| 31 | $this->methods = $methods; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getType(): string |
||
| 35 | { |
||
| 36 | return $this->type; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getKey(): bool |
||
| 40 | { |
||
| 41 | return $this->key; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getMethods(): ?MethodCollection |
||
| 47 | } |
||
| 48 | } |
||
| 49 |