DumperInterface.php 720 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Package\Dumper;
  12. use Composer\Package\PackageInterface;
  13. /**
  14. * @author Till Klampaeckel <till@php.net>
  15. */
  16. interface DumperInterface
  17. {
  18. /**
  19. * Return value depends on implementation - e.g. generating a tar or zip the
  20. * method currently returns void, the ArrayDumper returns an array.
  21. *
  22. * @param PackageInterface $package
  23. *
  24. * @return void
  25. */
  26. public function dump(PackageInterface $package);
  27. }