1 | <?php |
||
10 | class Swap implements PipeInterface |
||
11 | { |
||
12 | use IdentificationTrait; |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $id; |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $first; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $second; |
||
25 | |||
26 | public function __construct(string $id, string $first, string $second) |
||
32 | |||
33 | /** |
||
34 | * Swap one key with another. |
||
35 | * |
||
36 | * @param DataBagInterface $dataBag |
||
37 | * @return DataBagInterface |
||
38 | */ |
||
39 | public function pass(DataBagInterface $dataBag): DataBagInterface |
||
48 | } |
||
49 |