| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Context |
||
| 12 | { |
||
| 13 | /** @var Producer */ |
||
| 14 | private Producer $producer; |
||
| 15 | |||
| 16 | /** @var array */ |
||
| 17 | private array $data; |
||
| 18 | |||
| 19 | /** @var Message */ |
||
| 20 | private Message $message; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Context constructor. |
||
| 24 | * @param Producer $producer |
||
| 25 | * @param Message $message |
||
| 26 | * @param array $data |
||
| 27 | */ |
||
| 28 | 1 | public function __construct(Producer $producer, Message $message, array $data) |
|
| 29 | { |
||
| 30 | 1 | $this->producer = $producer; |
|
| 31 | 1 | $this->data = $data; |
|
| 32 | 1 | $this->message = $message; |
|
| 33 | 1 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return Producer |
||
| 37 | */ |
||
| 38 | 1 | public function getProducer(): Producer |
|
| 39 | { |
||
| 40 | 1 | return $this->producer; |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return Message |
||
| 45 | */ |
||
| 46 | 1 | public function getMessage(): Message |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | 1 | public function getData(): array |
|
| 57 | } |
||
| 58 | } |
||
| 59 |