| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class MetadataServiceSource implements MetadataSourceInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $url; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $rootCert; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string|null |
||
| 19 | */ |
||
| 20 | private $accessToken; |
||
| 21 | |||
| 22 | public function __construct(string $url, string $rootCert, ?string $accessToken = null) |
||
| 23 | { |
||
| 24 | $this->url = $url; |
||
| 25 | $this->rootCert = $rootCert; |
||
| 26 | $this->accessToken = $accessToken; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getUrl(): string |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getRootCert(): string |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getAccessToken(): ?string |
||
| 42 | } |
||
| 43 | } |
||
| 44 |