twister/src/ContainerAwareTrait.php
therselman 483f5d809e
2017-07-13 17:35:04 +02:00

23 lines
386 B
PHP

<?php
namespace Twister;
trait ContainerAwareTrait
{
/**
* @var ContainerInterface
*/
protected $container;
/**
* Sets the container.
*
* @param ContainerInterface|null $container A ContainerInterface instance or null
*/
public function setContainer(ContainerInterface $container = null)
{
$this->container = $container;
return $this;
}
}