Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Method | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Boiler; |
| 6 | |
| 7 | use Closure; |
| 8 | |
| 9 | /** @internal */ |
| 10 | final readonly class Method |
| 11 | { |
| 12 | public Closure $callable; |
| 13 | |
| 14 | public function __construct( |
| 15 | callable $callable, |
| 16 | public bool $safe = false, |
| 17 | ) { |
| 18 | $this->callable = Closure::fromCallable($callable); |
| 19 | } |
| 20 | } |