1: <?php
2: /**
3: * This file is part of the Autarky package.
4: *
5: * (c) Andreas Lutro <anlutro@gmail.com>
6: *
7: * For the full copyright and license information, please view the LICENSE
8: * file that was distributed with this source code.
9: */
10:
11: namespace Autarky\Container;
12:
13: /**
14: * Simple implementation of ContainerAwareInterface that other classes can use.
15: *
16: * @see ContainerAwareInterface
17: */
18: trait ContainerAwareTrait
19: {
20: /**
21: * @var ContainerInterface
22: */
23: protected $container;
24:
25: /**
26: * Set the container instance.
27: *
28: * @param ContainerInterface $container
29: */
30: public function setContainer(ContainerInterface $container)
31: {
32: $this->container = $container;
33: }
34: }
35: