| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class DungPit implements PitInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Manages data exchange between workers using workflow |
||
| 28 | * |
||
| 29 | * @var Conveyor |
||
| 30 | */ |
||
| 31 | private $conveyor; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Dto class |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | private $dtoClass; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * DungPit constructor. |
||
| 42 | * |
||
| 43 | * @param Conveyor $conveyor Manages data exchange between workers using workflow |
||
| 44 | * @param string $dtoClass |
||
| 45 | */ |
||
| 46 | public function __construct(Conveyor $conveyor, string $dtoClass) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function poll(): ?object |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | public function offer(object $dto): bool |
||
| 71 |