1 | <?php |
||
22 | class ReplaceText extends \Graze\DataFile\Modify\ReplaceText implements FlowInterface |
||
23 | { |
||
24 | use InvokeTrait; |
||
25 | /** |
||
26 | * @var |
||
27 | */ |
||
28 | private $from; |
||
29 | /** |
||
30 | * @var |
||
31 | */ |
||
32 | private $to; |
||
33 | |||
34 | /** |
||
35 | * ReplaceText constructor. |
||
36 | * |
||
37 | * @param string|string[] $from The text to be replaced |
||
38 | * @param string|string[] $to The new text |
||
39 | * @param array $options |
||
40 | */ |
||
41 | 4 | public function __construct($from, $to, array $options = []) |
|
47 | |||
48 | /** |
||
49 | * Run a 'flow' through the handler |
||
50 | * |
||
51 | * @param NodeInterface $node |
||
52 | * |
||
53 | * @return LocalFile |
||
54 | */ |
||
55 | 4 | public function flow(NodeInterface $node) |
|
63 | } |
||
64 |