OperationInterface.php 824 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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\DependencyResolver\Operation;
  12. use Composer\Package\PackageInterface;
  13. /**
  14. * Solver operation interface.
  15. *
  16. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  17. */
  18. interface OperationInterface
  19. {
  20. /**
  21. * Returns job type.
  22. *
  23. * @return string
  24. */
  25. function getJobType();
  26. /**
  27. * Returns operation reason.
  28. *
  29. * @return string
  30. */
  31. function getReason();
  32. /**
  33. * Serializes the operation in a human readable format
  34. *
  35. * @return string
  36. */
  37. function __toString();
  38. }