ChangeReportInterface.php 766 B

1234567891011121314151617181920212223242526272829303132
  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\Downloader;
  12. use Composer\Package\PackageInterface;
  13. /**
  14. * ChangeReport interface.
  15. *
  16. * @author Sascha Egerer <sascha.egerer@dkd.de>
  17. */
  18. interface ChangeReportInterface
  19. {
  20. /**
  21. * Checks for changes to the local copy
  22. *
  23. * @param PackageInterface $package package instance
  24. * @param string $path package directory
  25. * @return string|null changes or null
  26. */
  27. public function getLocalChanges(PackageInterface $package, $path);
  28. }