1 | <?php |
||
27 | class Compress implements FlowInterface, LoggerAwareInterface |
||
28 | { |
||
29 | use InvokeTrait; |
||
30 | use OptionalLoggerTrait; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $compression; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | private $options; |
||
41 | |||
42 | /** |
||
43 | * Compress constructor. |
||
44 | * |
||
45 | * @param string $compression |
||
46 | * @param array $options |
||
47 | */ |
||
48 | 13 | public function __construct($compression, array $options = []) |
|
53 | |||
54 | /** |
||
55 | * @param NodeInterface $node |
||
56 | * |
||
57 | * @return LocalFile |
||
58 | * @throws InvalidCompressionTypeException |
||
59 | * |
||
60 | */ |
||
61 | 13 | public function flow(NodeInterface $node) |
|
76 | } |
||
77 |