HummingBirdAnimeClient/src/Aviat/Ion/Di/ContainerAware.php

49 lines
778 B
PHP
Raw Normal View History

2015-09-17 23:11:18 -04:00
<?php
2015-11-16 11:40:01 -05:00
/**
* Ion
*
* Building blocks for web development
*
* @package Ion
* @author Timothy J. Warren
* @copyright Copyright (c) 2015 - 2016
2015-11-16 11:40:01 -05:00
* @license MIT
*/
2015-09-17 23:11:18 -04:00
namespace Aviat\Ion\Di;
2015-10-14 09:20:52 -04:00
/**
* Trait implementation of ContainerAwareInterface
*/
2015-09-17 23:11:18 -04:00
trait ContainerAware {
/**
* Di Container
*
* @var ContainerInterface
*/
protected $container;
/**
* Set the container for the current object
*
* @param ContainerInterface $container
* @return $this
*/
public function setContainer(ContainerInterface $container)
{
$this->container = $container;
return $this;
}
/**
* Get the container object
*
* @return ContainerInterface
*/
public function getContainer()
{
return $this->container;
}
}
2015-11-11 15:28:51 -05:00
// End of ContainerAware.php