| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 0 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 22 | public function __construct( |
||
| 23 | /** |
||
| 24 | * Original element. |
||
| 25 | * |
||
| 26 | * @phpstan-var T |
||
| 27 | * @var object |
||
| 28 | */ |
||
| 29 | private object $origin, |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Context for the element. |
||
| 33 | * Modifies the element and returns the result. |
||
| 34 | * |
||
| 35 | * @phpstan-var Closure(T): T |
||
| 36 | * @var Closure |
||
| 37 | */ |
||
| 38 | private Closure $context, |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Methods on which the element must be modified.\ |
||
| 42 | * Does not accept nulls as values. |
||
| 43 | * |
||
| 44 | * @var array<string, mixed> |
||
| 45 | */ |
||
| 46 | private array $methods |
||
| 47 | ) { |
||
| 48 | } |
||
| 61 |