for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright 2017 NanoSector
*
* You should have received a copy of the MIT license with the project.
* See the LICENSE file for more information.
*/
namespace Yoshi2889\Container;
use Psr\Container\ContainerInterface;
trait ContainerTrait
{
* @var ContainerInterface
protected $container;
* @return ContainerInterface
public function getContainer(): ContainerInterface
return $this->container;
}
* @param ContainerInterface $container
public function setContainer(ContainerInterface $container)
$this->container = $container;