| 1 | <?php |
||
| 14 | class Pipeline |
||
| 15 | { |
||
| 16 | /** @var EventDispatcherInterface */ |
||
| 17 | private $dispatcher; |
||
| 18 | |||
| 19 | /** @var AbstractParaunitProcess */ |
||
| 20 | private $process; |
||
| 21 | |||
| 22 | /** @var int */ |
||
| 23 | private $number; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Pipeline constructor. |
||
| 27 | * @param EventDispatcherInterface $dispatcher |
||
| 28 | * @param int $number |
||
| 29 | */ |
||
| 30 | 35 | public function __construct(EventDispatcherInterface $dispatcher, int $number) |
|
| 35 | |||
| 36 | 19 | public function execute(AbstractParaunitProcess $process) |
|
| 47 | |||
| 48 | 20 | public function isFree(): bool |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | 18 | public function isTerminated(): bool |
|
| 70 | |||
| 71 | 1 | public function getNumber(): int |
|
| 75 | |||
| 76 | 16 | private function handleProcessTermination() |
|
| 81 | } |
||
| 82 |