Pipeline.php 759 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Illuminate\Contracts\Pipeline;
  3. use Closure;
  4. interface Pipeline
  5. {
  6. /**
  7. * Set the traveler object being sent on the pipeline.
  8. *
  9. * @param mixed $traveler
  10. * @return $this
  11. */
  12. public function send($traveler);
  13. /**
  14. * Set the stops of the pipeline.
  15. *
  16. * @param dynamic|array $stops
  17. * @return $this
  18. */
  19. public function through($stops);
  20. /**
  21. * Set the method to call on the stops.
  22. *
  23. * @param string $method
  24. * @return $this
  25. */
  26. public function via($method);
  27. /**
  28. * Run the pipeline with a final destination callback.
  29. *
  30. * @param \Closure $destination
  31. * @return mixed
  32. */
  33. public function then(Closure $destination);
  34. }