OperationInterface.php 803 B

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