1: <?php
2: /**
3: * PHP version 5
4: * @package generalDriver
5: * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
6: * @author Stefan Heimes <stefan_heimes@hotmail.com>
7: * @author Tristan Lins <tristan.lins@bit3.de>
8: * @copyright The MetaModels team.
9: * @license LGPL.
10: * @filesource
11: */
12:
13: namespace DcGeneral\Factory\Event;
14:
15: use DcGeneral\DataDefinition\ContainerInterface;
16: use Symfony\Component\EventDispatcher\Event;
17:
18: /**
19: * This event is emitted when a data definition is being built.
20: *
21: * @package DcGeneral\Factory\Event
22: */
23: class BuildDataDefinitionEvent extends Event
24: {
25: const NAME = 'dc-general.factory.build-data-definition';
26:
27: /**
28: * The data definition container being built.
29: *
30: * @var ContainerInterface
31: */
32: protected $container;
33:
34: /**
35: * Create a new instance.
36: *
37: * @param ContainerInterface $container The container being built.
38: */
39: public function __construct(ContainerInterface $container)
40: {
41: $this->container = $container;
42: }
43:
44: /**
45: * Retrieve the data definition container.
46: *
47: * @return ContainerInterface
48: */
49: public function getContainer()
50: {
51: return $this->container;
52: }
53: }
54: