Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Iconify
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Cosray\Config;
6
7final class Iconify
8{
9    public function __construct(
10        private readonly \Cosray\Config $config,
11    ) {}
12
13    /** @var non-empty-string */
14    public string $baseUrl {
15        get => $this->config->get('icons.iconify.base_url');
16    }
17
18    /** @var positive-int */
19    public int $timeout {
20        get => $this->config->get('icons.iconify.timeout');
21    }
22
23    /** @var non-empty-string */
24    public string $userAgent {
25        get => $this->config->get('icons.iconify.user_agent');
26    }
27}