Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __construct(string $sdkKey, ConfigCache $cache = null, int $cacheTTL = 60, LoggerInterface $logger = null) |
||
17 | { |
||
18 | $options = []; |
||
19 | |||
20 | if ($cache) { |
||
21 | $options['cache'] = $cache; |
||
22 | $options['cache-refresh-interval'] = $cacheTTL; |
||
23 | } |
||
24 | |||
25 | if ($logger) { |
||
26 | $options['logger'] = $logger; |
||
27 | } |
||
28 | |||
29 | $this->client = new ConfigCatClient($sdkKey, $options); |
||
30 | } |
||
43 | } |