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: * @copyright The MetaModels team.
8: * @license LGPL.
9: * @filesource
10: */
11:
12: namespace DcGeneral;
13:
14: /**
15: * This class holds everything together.
16: *
17: * @package DcGeneral
18: */
19: class DcGeneral
20: implements EnvironmentAwareInterface
21: {
22: /**
23: * The environment instance.
24: *
25: * @var EnvironmentInterface
26: */
27: protected $environment;
28:
29: /**
30: * Create a new instance.
31: *
32: * @param EnvironmentInterface $environment The environment.
33: */
34: public function __construct(EnvironmentInterface $environment)
35: {
36: $this->environment = $environment;
37: }
38:
39: /**
40: * {@inheritDoc}
41: */
42: public function getEnvironment()
43: {
44: return $this->environment;
45: }
46: }
47: