Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ApplicationInformationService |
||
12 | { |
||
13 | private const CACHE_KEY = 'latestKoelVersion'; |
||
14 | |||
15 | private $client; |
||
16 | private $cache; |
||
17 | private $logger; |
||
18 | |||
19 | 1 | public function __construct(Client $client, Cache $cache, Logger $logger) |
|
20 | { |
||
21 | 1 | $this->client = $client; |
|
22 | 1 | $this->cache = $cache; |
|
23 | 1 | $this->logger = $logger; |
|
24 | 1 | } |
|
25 | |||
26 | /** |
||
27 | * Get the latest version number of Koel from GitHub. |
||
28 | */ |
||
29 | 1 | public function getLatestVersionNumber(): string |
|
40 | } |
||
41 | 1 | }); |
|
44 |