1 | <?php |
||
10 | class Delete implements PipeInterface |
||
11 | { |
||
12 | use IdentificationTrait; |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $id; |
||
17 | /** |
||
18 | * @var string[] |
||
19 | */ |
||
20 | private $fieldNames; |
||
21 | |||
22 | 3 | public function __construct(string $id, string ...$fieldNames) |
|
27 | |||
28 | /** |
||
29 | * Delete data from the bag by key[s] |
||
30 | * |
||
31 | * @param DataBagInterface $dataBag |
||
32 | * @return DataBagInterface |
||
33 | */ |
||
34 | 2 | public function pass(DataBagInterface $dataBag): DataBagInterface |
|
44 | } |
||
45 |