Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| LoadedScript | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Quma; |
| 6 | |
| 7 | use Closure; |
| 8 | |
| 9 | final class LoadedScript |
| 10 | { |
| 11 | /** @var (Closure(string, string): string)|null */ |
| 12 | public readonly ?Closure $compile; |
| 13 | |
| 14 | /** @param (Closure(string, string): string)|null $compile */ |
| 15 | public function __construct( |
| 16 | public readonly string $source, |
| 17 | public readonly string $sourcePath, |
| 18 | ?Closure $compile = null, |
| 19 | ) { |
| 20 | $this->compile = $compile; |
| 21 | } |
| 22 | } |