1 | <?php |
||
13 | class Pipe implements PipeInterface |
||
14 | { |
||
15 | /** @var array|ExecutableInterface[] */ |
||
16 | private $processes; |
||
17 | |||
18 | /** |
||
19 | * Adds one or more process to the pipe |
||
20 | * |
||
21 | * @param ExecutableInterface $process - or more |
||
22 | * @param ExecutableInterface $_ [optional] |
||
23 | * @throws InvalidArgumentException |
||
24 | */ |
||
25 | public function __construct(ExecutableInterface $process = null, $_ = null) |
||
33 | |||
34 | /** |
||
35 | * @param mixed $input |
||
36 | * @return mixed |
||
37 | * @throws ExecutableException |
||
38 | */ |
||
39 | public function execute($input = null) |
||
47 | |||
48 | /** |
||
49 | * Adds one or more process to the pipe |
||
50 | * |
||
51 | * @param ExecutableInterface $process - or more |
||
52 | * @param ExecutableInterface $_ [optional] |
||
53 | * @throws InvalidArgumentException |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function pipe(ExecutableInterface $process, $_ = null) |
||
72 | } |
||
73 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.