ProcedureInterface.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /*
  3. * This file is part of the php-phantomjs.
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. namespace JonnyW\PhantomJs\Procedure;
  9. /**
  10. * PHP PhantomJs
  11. *
  12. * @author Jon Wenmoth <contact@jonnyw.me>
  13. */
  14. interface ProcedureInterface
  15. {
  16. /**
  17. * Run procedure.
  18. *
  19. * @access public
  20. * @param \JonnyW\PhantomJs\Procedure\InputInterface $input
  21. * @param \JonnyW\PhantomJs\Procedure\OutputInterface $output
  22. */
  23. public function run(InputInterface $input, OutputInterface $output);
  24. /**
  25. * Set procedure template.
  26. *
  27. * @access public
  28. * @param string $template
  29. */
  30. public function setTemplate($template);
  31. /**
  32. * Get procedure template.
  33. *
  34. * @access public
  35. * @return string
  36. */
  37. public function getTemplate();
  38. /**
  39. * Compile procedure.
  40. *
  41. * @access public
  42. * @param \JonnyW\PhantomJs\Procedure\InputInterface $input
  43. * @return string
  44. */
  45. public function compile(InputInterface $input);
  46. }