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