1 | <?php |
||
11 | class Creator implements CreatorInterface |
||
12 | { |
||
13 | use ErrorAwareTrait; |
||
14 | |||
15 | /** |
||
16 | * @var RepositoryInterface |
||
17 | */ |
||
18 | protected $repository; |
||
19 | |||
20 | /** |
||
21 | * @var EntityFactoryInterface |
||
22 | */ |
||
23 | protected $entityFactory; |
||
24 | |||
25 | /** |
||
26 | * @var EventManagerInterface |
||
27 | */ |
||
28 | protected $eventManager; |
||
29 | |||
30 | /** |
||
31 | * @param RepositoryInterface $repository |
||
32 | * @param EntityFactoryInterface $entityFactory |
||
33 | * @param EventManagerInterface|null $eventManager |
||
34 | */ |
||
35 | public function __construct( |
||
44 | |||
45 | public function create(array $data) |
||
63 | } |
||
64 |