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