1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-10-09 20:36:35 +02:00
Files
php-zip/tests/Internal/Epub/EpubZipContainer.php
Ne-Lexa 5ec656fde4 Implemented the ability to override the instance of ZipContainer.
ZipContainer will be cloned before writing the zip file.
Tested custom ZipWriter, ZipReader, ZipContainer and ZipFile.
2020-01-21 14:13:47 +03:00

23 lines
415 B
PHP

<?php
namespace PhpZip\Tests\Internal\Epub;
use PhpZip\Exception\ZipEntryNotFoundException;
use PhpZip\Model\ZipContainer;
/**
* Class EpubZipContainer.
*/
class EpubZipContainer extends ZipContainer
{
/**
* @throws ZipEntryNotFoundException
*
* @return string
*/
public function getMimeType()
{
return $this->getEntry('mimetype')->getData()->getDataAsString();
}
}