File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
src/Imtigger/OneExcel/Writer Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ class FPutCsvWriter extends OneExcelWriter implements OneExcelWriterInterface
9
9
public static $ input_format_supported = [Format::CSV ];
10
10
public static $ output_format_supported = [Format::CSV ];
11
11
public static $ input_output_same_format = true ;
12
- private $ input_format ;
13
- private $ output_format ;
14
12
private $ last_row = 0 ;
15
13
private $ data = [];
16
14
private $ temp_file ;
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ class LibXLWriter extends OneExcelWriter implements OneExcelWriterInterface
14
14
private $ book ;
15
15
/** @var \ExcelSheet $sheet */
16
16
private $ sheet ;
17
- private $ input_format ;
18
- private $ output_format ;
19
17
20
18
public function create ($ output_format = Format::XLSX )
21
19
{
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ abstract class OneExcelWriter implements OneExcelWriterInterface
10
10
public static $ output_format_supported = [];
11
11
public static $ input_output_same_format ;
12
12
13
+ protected $ input_format ;
14
+ protected $ output_format ;
15
+
13
16
protected function isInputFormatSupported ($ format )
14
17
{
15
18
return in_array ($ format , static ::$ input_format_supported );
@@ -51,4 +54,9 @@ protected function getFormatMime($format)
51
54
52
55
throw new \Exception ("Unknown format {$ format }" );
53
56
}
57
+
58
+ public function getOutputExtension ()
59
+ {
60
+ return $ this ->output_format ;
61
+ }
54
62
}
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ class PHPExcelWriter extends OneExcelWriter implements OneExcelWriterInterface
16
16
private $ book ;
17
17
/** @var \PHPExcel_Worksheet $sheet */
18
18
private $ sheet ;
19
- private $ input_format ;
20
- private $ output_format ;
21
19
22
20
public function create ($ output_format = Format::XLSX )
23
21
{
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ class SpoutWriter extends OneExcelWriter implements OneExcelWriterInterface
14
14
public static $ input_output_same_format = false ;
15
15
/** @var AbstractMultiSheetsWriter $writer */
16
16
private $ writer ;
17
- private $ input_format ;
18
- private $ output_format ;
19
17
private $ last_row = 0 ;
20
18
private $ data = [];
21
19
private $ temp_file ;
You can’t perform that action at this time.
0 commit comments