1 | <?php |
||
18 | class RecordInstantiator implements InstantiatorInterface |
||
19 | { |
||
20 | /** |
||
21 | * @invisible |
||
22 | * @var ORMInterface |
||
23 | */ |
||
24 | private $orm; |
||
25 | |||
26 | /** |
||
27 | * Record class. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | private $class = ''; |
||
32 | |||
33 | /** |
||
34 | * Normalized schema delivered by RecordSchema. |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | private $schema = []; |
||
39 | |||
40 | /** |
||
41 | * @param ORMInterface $orm |
||
42 | * @param string $class |
||
43 | * @param array $schema |
||
44 | */ |
||
45 | public function __construct(ORMInterface $orm, string $class, array $schema) |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | * |
||
55 | * @return ActiveEntityInterface |
||
56 | * |
||
57 | * @throws InstantionException |
||
58 | */ |
||
59 | public function make($fields, bool $filter = true): ActiveEntityInterface |
||
89 | |||
90 | } |