EpubZipContainer.php 415 B

12345678910111213141516171819202122
  1. <?php
  2. namespace PhpZip\Tests\Internal\Epub;
  3. use PhpZip\Exception\ZipEntryNotFoundException;
  4. use PhpZip\Model\ZipContainer;
  5. /**
  6. * Class EpubZipContainer.
  7. */
  8. class EpubZipContainer extends ZipContainer
  9. {
  10. /**
  11. * @throws ZipEntryNotFoundException
  12. *
  13. * @return string
  14. */
  15. public function getMimeType()
  16. {
  17. return $this->getEntry('mimetype')->getData()->getDataAsString();
  18. }
  19. }