1 | <?php |
||
20 | abstract class AbstractStingerFixture extends AbstractFixture { |
||
21 | |||
22 | use ContainerAwareTrait; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @var ObjectManager |
||
27 | */ |
||
28 | protected $manager; |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @var LoggerInterface |
||
33 | */ |
||
34 | private $logger; |
||
35 | |||
36 | public final function load(ObjectManager $manager) { |
||
50 | |||
51 | protected final function reportMemoryUsage() { |
||
54 | |||
55 | /** |
||
56 | * Load data fixtures |
||
57 | */ |
||
58 | protected abstract function import(); |
||
59 | |||
60 | /** |
||
61 | * Decides whether this fixture should be skipped or not. |
||
62 | * |
||
63 | * @return bool |
||
64 | */ |
||
65 | protected function skipMe() { |
||
68 | |||
69 | /** |
||
70 | * |
||
71 | * @return LoggerInterface|null |
||
72 | */ |
||
73 | protected function getLogger() { |
||
81 | } |