Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | final class ReadModelConfiguration |
||
6 | { |
||
7 | private $name; |
||
8 | public function getName() { return $this->name; } |
||
9 | |||
10 | private $id; |
||
11 | public function getId() { return $this->id; } |
||
12 | |||
13 | /** @var ReadModelField[] */ |
||
14 | private $fields; |
||
15 | public function getFields() { return $this->fields; } |
||
16 | |||
17 | private $recordFactory; |
||
18 | private $allRecords; |
||
19 | |||
20 | public function __construct($name, ReadModelId $id, array $fields, callable $recordFactory, callable $allRecords) |
||
21 | { |
||
22 | $this->name = $name; |
||
23 | $this->id = $id; |
||
24 | $this->fields = $fields; |
||
25 | $this->recordFactory = $recordFactory; |
||
26 | $this->allRecords = $allRecords; |
||
27 | } |
||
28 | |||
29 | public function getAllRecords() |
||
34 | } |
||
35 | |||
36 | /** @return Record */ |
||
37 | public function createRecord($recordData) |
||
41 | } |
||
42 | } |
||
43 |