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
Block
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 Celema\Boiler;
6
7use Closure;
8
9/** @internal */
10final readonly class Block
11{
12    /**
13     * @param string $kind what the block is, for error messages, e.g. `section`
14     * @param Closure(string, Location): void $close receives the captured output and where the block opened
15     */
16    public function __construct(
17        public string $kind,
18        public string $name,
19        public Location $location,
20        public Closure $close,
21    ) {}
22}