Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / league / container / src / ContainerAwareTrait.php
1 <?php
2
3 namespace League\Container;
4
5 trait ContainerAwareTrait
6 {
7     /**
8      * @var \League\Container\ContainerInterface
9      */
10     protected $container;
11
12     /**
13      * Set a container.
14      *
15      * @param  \League\Container\ContainerInterface $container
16      * @return $this
17      */
18     public function setContainer(ContainerInterface $container)
19     {
20         $this->container = $container;
21
22         return $this;
23     }
24
25     /**
26      * Get the container.
27      *
28      * @return \League\Container\ContainerInterface
29      */
30     public function getContainer()
31     {
32         return $this->container;
33     }
34 }