mirror of
https://github.com/twisterarmy/twister.git
synced 2025-03-12 21:31:26 +00:00
23 lines
386 B
PHP
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;
|
|
}
|
|
}
|