2
0

EpubZipContainer.php 620 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the nelexa/zip package.
  5. * (c) Ne-Lexa <https://github.com/Ne-Lexa/php-zip>
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace PhpZip\Tests\Internal\Epub;
  10. use PhpZip\Exception\ZipEntryNotFoundException;
  11. use PhpZip\Model\ZipContainer;
  12. class EpubZipContainer extends ZipContainer
  13. {
  14. /**
  15. * @throws ZipEntryNotFoundException
  16. */
  17. public function getMimeType(): string
  18. {
  19. return $this->getEntry('mimetype')->getData()->getDataAsString();
  20. }
  21. }