PhpBench\Registry\Registry::__construct PHP Method

__construct() public method

public __construct ( $serviceType, PhpBench\DependencyInjection\Container $container, $defaultService = null )
$container PhpBench\DependencyInjection\Container
    public function __construct($serviceType, Container $container, $defaultService = null)
    {
        $this->serviceType = $serviceType;
        $this->container = $container;
        $this->defaultService = $defaultService;
    }

Usage Example

 public function __construct($serviceType, Container $container, JsonDecoder $jsonDecoder)
 {
     parent::__construct($serviceType, $container);
     $this->jsonDecoder = $jsonDecoder;
 }