Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
LayoutContext
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
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
 body
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 Celemas\Boiler;
6
7/** @api */
8final class LayoutContext extends Context
9{
10    /** @param list<class-string> $trusted */
11    public function __construct(
12        private readonly Layout $layout,
13        array $context,
14        array $trusted,
15        bool $autoescape,
16    ) {
17        parent::__construct($layout, $context, $trusted, $autoescape);
18    }
19
20    public function body(): string
21    {
22        return $this->layout->body();
23    }
24}