MetaDataControl   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 2
c 2
b 0
f 0
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A render() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SeoHelper\Bridge\Nette\Components\MetaData;
6
7
use Nette\Application\UI\Control;
8
use SeoHelper\Generator\GeneratorInterface;
9
use SeoHelper\MetaData\BaseMetaData;
10
11
class MetaDataControl extends Control
12
{
13
    public function __construct(
14
        private BaseMetaData $metaData,
15 9
        private GeneratorInterface $generator
16
    ) {
17 9
    }
18 9
19 9
    public function render(): void
20 9
    {
21
        echo $this->generator->render($this->metaData);
22 9
    }
23
}
24