mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-10-09 20:36:35 +02:00
ZipContainer will be cloned before writing the zip file. Tested custom ZipWriter, ZipReader, ZipContainer and ZipFile.
23 lines
415 B
PHP
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();
|
|
}
|
|
}
|