ProcedureLoaderInterface.php 750 B

12345678910111213141516171819202122232425262728293031323334353637
  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 ProcedureLoaderInterface
  15. {
  16. /**
  17. * Load procedure instance by id.
  18. *
  19. * @param string $id
  20. *
  21. * @return \JonnyW\PhantomJs\Procedure\ProcedureInterface
  22. */
  23. public function load($id);
  24. /**
  25. * Load procedure template by id.
  26. *
  27. * @param string $id
  28. * @param string $extension (default: 'proc')
  29. *
  30. * @return string
  31. */
  32. public function loadTemplate($id, $extension = 'proc');
  33. }