Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
LogContextBuilder | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
process | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Apie\ApieBundle\DataCollector; |
4 | |
5 | use Apie\Core\Context\ApieContext; |
6 | use Apie\Core\ContextBuilders\ContextBuilderInterface; |
7 | |
8 | class LogContextBuilder implements ContextBuilderInterface |
9 | { |
10 | public function __construct( |
11 | private readonly string $contextBuilderClass, |
12 | private readonly ApieDataCollector $apieDataCollector |
13 | ) { |
14 | } |
15 | |
16 | public function process(ApieContext $context): ApieContext |
17 | { |
18 | $this->apieDataCollector->logApieContext($this->contextBuilderClass, $context); |
19 | return $context; |
20 | } |
21 | } |