twister/src/ContainerAwareTrait.php
therselman d18d37021c
2017-08-04 15:19:32 +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;
}
}