| 1 | <?php |
||
| 8 | final class DelegatingUpcaster implements Upcaster |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var DelegatableUpcaster[][] |
||
| 12 | */ |
||
| 13 | private $upcasters; |
||
| 14 | |||
| 15 | 3 | public function __construct(DelegatableUpcaster ... $upcasters) |
|
| 21 | |||
| 22 | 1 | public function upcaster(array $payload): ?Upcaster |
|
| 34 | |||
| 35 | 1 | public function upcast(array $payload): Generator |
|
| 45 | |||
| 46 | 2 | public function canUpcast(string $type, array $payload): bool |
|
| 50 | } |