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\Event;
14:
15: use DcGeneral\ViewAwareInterface;
16: use Symfony\Component\EventDispatcher\Event;
17:
18: /**
19: * Abstract event class referencing an environment and a view.
20: *
21: * @package DcGeneral\Event
22: */
23: class AbstractViewAwareEvent
24: extends AbstractEnvironmentAwareEvent
25: implements ViewAwareInterface
26: {
27: /**
28: * {@inheritdoc}
29: */
30: public function getView()
31: {
32: return $this->getEnvironment()->getView();
33: }
34: }
35: