| 1 | <?php |
||
| 21 | final class ChainDataPersister implements DataPersisterInterface |
||
| 22 | { |
||
| 23 | private $persisters; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param DataPersisterInterface[] $persisters |
||
| 27 | */ |
||
| 28 | public function __construct(array $persisters) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function supports($data): bool |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function persist($data) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function remove($data) |
||
| 70 | } |
||
| 71 |