| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class RowEventBuilder |
||
| 13 | { |
||
| 14 | private $repository; |
||
| 15 | private $cache; |
||
| 16 | /** |
||
| 17 | * @var BinaryDataReader |
||
| 18 | */ |
||
| 19 | private $package; |
||
| 20 | /** |
||
| 21 | * @var EventInfo |
||
| 22 | */ |
||
| 23 | private $eventInfo; |
||
| 24 | /** |
||
| 25 | * @var Config |
||
| 26 | */ |
||
| 27 | private $config; |
||
| 28 | |||
| 29 | 58 | public function __construct( |
|
| 30 | Config $config, |
||
| 31 | RepositoryInterface $repository, |
||
| 32 | CacheInterface $cache |
||
| 33 | ) { |
||
| 34 | 58 | $this->repository = $repository; |
|
| 35 | 58 | $this->cache = $cache; |
|
| 36 | 58 | $this->config = $config; |
|
| 37 | } |
||
| 38 | |||
| 39 | 54 | public function withPackage(BinaryDataReader $package): void |
|
| 40 | { |
||
| 41 | 54 | $this->package = $package; |
|
| 42 | } |
||
| 43 | |||
| 44 | 54 | public function build(): RowEvent |
|
| 52 | 54 | ); |
|
| 53 | } |
||
| 54 | |||
| 55 | 54 | public function withEventInfo(EventInfo $eventInfo): void |
|
| 60 |