Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celema\Boiler\Contract; |
| 6 | |
| 7 | /** @api */ |
| 8 | interface Wrapper |
| 9 | { |
| 10 | /** |
| 11 | * A wrapper that leaves instances of the given classes unwrapped, at |
| 12 | * any depth of the value it wraps. |
| 13 | * |
| 14 | * @param list<class-string> $trusted |
| 15 | */ |
| 16 | public function withTrusted(array $trusted): static; |
| 17 | |
| 18 | public function wrap(mixed $value): mixed; |
| 19 | |
| 20 | public function unwrap(mixed $value): mixed; |
| 21 | |
| 22 | public function escape( |
| 23 | string $value, |
| 24 | ?string $escaper = null, |
| 25 | ): string; |
| 26 | |
| 27 | public function filter(string $name): Filter; |
| 28 | } |