| Total Complexity | 7 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class SchemeCollection implements SchemeCollectionInterface |
||
| 13 | { |
||
| 14 | private string $scheme = ''; |
||
| 15 | private string $appName = ''; |
||
| 16 | |||
| 17 | /** @var AdapterInterface[] */ |
||
| 18 | private array $collection = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * {@inheritDoc} |
||
| 22 | */ |
||
| 23 | #[Override] |
||
| 24 | public function scheme(string $scheme): SchemeCollectionInterface |
||
| 25 | { |
||
| 26 | $this->scheme = $scheme; |
||
| 27 | |||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritDoc} |
||
| 33 | */ |
||
| 34 | #[Override] |
||
| 35 | public function host(string $host): SchemeCollectionInterface |
||
| 36 | { |
||
| 37 | $this->appName = $host; |
||
| 38 | |||
| 39 | return $this; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | #[Override] |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritDoc} |
||
| 55 | * |
||
| 56 | * @throws SchemeException |
||
| 57 | */ |
||
| 58 | #[Override] |
||
| 73 |