for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Phossa Project
*
* PHP version 5.4
* @category Library
* @package Phossa2\Di
* @copyright Copyright (c) 2016 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa2\Di\Traits;
use Phossa2\Di\Interfaces\FactoryInterface;
* ContainerHelperTrait
* @author Hong Zhang <[email protected]>
* @version 2.0.0
* @since 2.0.0 added
trait ContainerHelperTrait
{
use ResolverAwareTrait;
* @var FactoryInterface
* @access protected
protected $factory;
* Inject the Factory
* @param FactoryInterface $factory
* @return $this
protected function setFactory(FactoryInterface $factory)
$this->factory = $factory;
return $this;
}
* Get the Factory
* @return FactoryInterface
protected function getFactory()/*# : FactoryInterface */
return $this->factory;