1 | <?php |
||
17 | class QueryExporter implements QueryExporterInterface, BuilderAwareInterface |
||
18 | { |
||
19 | use BuilderTrait; |
||
20 | use OptionalLoggerTrait; |
||
21 | use FileHelper; |
||
22 | |||
23 | const PATH_TMP = '/tmp/export/query/'; |
||
24 | |||
25 | /** @var FileNodeInterface */ |
||
26 | private $file; |
||
27 | /** @var FormatInterface|null */ |
||
28 | private $format; |
||
29 | |||
30 | /** |
||
31 | * QueryExporter constructor. |
||
32 | * |
||
33 | * @param FileNodeInterface|null $file |
||
34 | * @param FormatInterface|null $format |
||
35 | */ |
||
36 | public function __construct( |
||
43 | |||
44 | /** |
||
45 | * Export a table to something |
||
46 | * |
||
47 | * @param QueryNodeInterface $query |
||
48 | * |
||
49 | * @return FileNodeInterface |
||
50 | */ |
||
51 | public function export(QueryNodeInterface $query) |
||
71 | |||
72 | /** |
||
73 | * Sets a default format to use |
||
74 | */ |
||
75 | private function setDefaultFormat() |
||
85 | } |
||
86 |