ParserInterface.php 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*
  3. * This file is part of Zippy.
  4. *
  5. * (c) Alchemy <info@alchemy.fr>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Alchemy\Zippy\Parser;
  11. use Alchemy\Zippy\Exception\RuntimeException;
  12. interface ParserInterface
  13. {
  14. /**
  15. * Parses a file listing
  16. *
  17. * @param string $output The string to parse
  18. *
  19. * @return array An array of Member properties (location, mtime, size & is_dir)
  20. *
  21. * @throws RuntimeException In case the parsing process failed
  22. */
  23. public function parseFileListing($output);
  24. /**
  25. * Parses the inflator binary version
  26. *
  27. * @param string $output
  28. *
  29. * @return string The version
  30. */
  31. public function parseInflatorVersion($output);
  32. /**
  33. * Parses the deflator binary version
  34. *
  35. * @param string $output
  36. *
  37. * @return string The version
  38. */
  39. public function parseDeflatorVersion($output);
  40. }