Skip to content

Commit 75e4b59

Browse files
committed
Removed getFilename() method
1 parent 61d3266 commit 75e4b59

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/Ifsnop/Mysqldump/Mysqldump.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,16 +269,6 @@ public function start($filename = '')
269269
$this->compressManager->close();
270270
}
271271

272-
/**
273-
* Returns written archive filename
274-
*
275-
* @return string
276-
*/
277-
public function getFilename()
278-
{
279-
return $this->compressManager->getArchiveFilename();
280-
}
281-
282272
/**
283273
* Returns header for dump file
284274
*
@@ -729,8 +719,6 @@ public static function isValid($c)
729719

730720
abstract class CompressManagerFactory
731721
{
732-
protected $archiveFilename;
733-
734722
/**
735723
* @param string $c
736724
* @return CompressBzip2|CompressGzip|CompressNone
@@ -766,8 +754,7 @@ public function __construct()
766754

767755
public function open($filename)
768756
{
769-
$this->archiveFilename = $filename;
770-
$this->fileHandler = bzopen($this->archiveFilename, "w");
757+
$this->fileHandler = bzopen($filename, "w");
771758
if (false === $this->fileHandler) {
772759
throw new Exception("Output file is not writable");
773760
}
@@ -802,8 +789,7 @@ public function __construct()
802789

803790
public function open($filename)
804791
{
805-
$this->archiveFilename = $filename;
806-
$this->fileHandler = gzopen($this->archiveFilename, "wb");
792+
$this->fileHandler = gzopen($filename, "wb");
807793
if (false === $this->fileHandler) {
808794
throw new Exception("Output file is not writable");
809795
}

0 commit comments

Comments
 (0)