Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (34 sloc)
759 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Pipeline; | |
use Closure; | |
interface Pipeline | |
{ | |
/** | |
* Set the traveler object being sent on the pipeline. | |
* | |
* @param mixed $traveler | |
* @return $this | |
*/ | |
public function send($traveler); | |
/** | |
* Set the stops of the pipeline. | |
* | |
* @param dynamic|array $stops | |
* @return $this | |
*/ | |
public function through($stops); | |
/** | |
* Set the method to call on the stops. | |
* | |
* @param string $method | |
* @return $this | |
*/ | |
public function via($method); | |
/** | |
* Run the pipeline with a final destination callback. | |
* | |
* @param \Closure $destination | |
* @return mixed | |
*/ | |
public function then(Closure $destination); | |
} |