1 | <?php |
||
13 | trait LoaderTrait |
||
14 | { |
||
15 | /** |
||
16 | * @var RepositoryInterface |
||
17 | */ |
||
18 | protected $entityRepository; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $entityProperties; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $entityClass; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $collectionClass; |
||
34 | |||
35 | /** |
||
36 | * @var OptionsResolver |
||
37 | */ |
||
38 | protected $filterResolver; |
||
39 | |||
40 | /** |
||
41 | * @var \Closure |
||
42 | */ |
||
43 | private $loadingDelegate; |
||
44 | |||
45 | /** |
||
46 | * setUp method. |
||
47 | * |
||
48 | * @param string $entityClass |
||
49 | * @param array $entityProperties |
||
50 | * @param string $collectionClass |
||
51 | * @param RepositoryInterface $entityRepository |
||
52 | */ |
||
53 | public function setUp( |
||
69 | |||
70 | /** |
||
71 | * @see LoaderInterface::configureMetadata() |
||
72 | */ |
||
73 | public function configureMetadata($entityClass, array $entityProperties, $collectionClass) |
||
84 | |||
85 | /** |
||
86 | * Returns repository loading delegate. |
||
87 | * |
||
88 | * @return \Closure |
||
89 | */ |
||
90 | public function getLoadingDelegate() |
||
96 | } |
||
97 |
If you suppress an error, we recommend checking for the error condition explicitly: