| 1 | <?php |
||
| 10 | class Copy implements PipeInterface |
||
| 11 | { |
||
| 12 | use IdentificationTrait; |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $id; |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $from; |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $to; |
||
| 25 | |||
| 26 | 1 | public function __construct(string $id, string $from, string $to) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Copy data from one key to another. Create if doesn't exist. |
||
| 35 | * |
||
| 36 | * @param DataBagInterface $dataBag |
||
| 37 | * @return DataBagInterface |
||
| 38 | */ |
||
| 39 | 1 | public function pass(DataBagInterface $dataBag): DataBagInterface |
|
| 46 | } |
||
| 47 |