src/ServiceCacheAwareTrait.php
protected function _setServiceCache($serviceCache)
    {
        if ($serviceCache !== null && !($serviceCache instanceof ContainerInterface)) {
            throw $this->_createInvalidArgumentException($this->__('Invalid cache'), null, null, $serviceCache);
        }

        $this->serviceCache = $serviceCache;
    }
protected function _setServiceCache($serviceCache)
    {
        if ($serviceCache !== null && !($serviceCache instanceof ContainerInterface)) {
            throw $this->_createInvalidArgumentException($this->__('Invalid cache'), null, null, $serviceCache);
        }

        $this->serviceCache = $serviceCache;
    }
protected function _setServiceCache ( $ serviceCache ) { if ( $ serviceCache !== null && ! ( $ serviceCache instanceof ContainerInterface ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Invalid cache' ) , null , null , $ serviceCache ) ; } $ this -> serviceCache = $ serviceCache ; }
Assigns a service cache to this instance.

@since [*next-version*]

@param ContainerInterface|null $serviceCache The service cache.
Assigns a service cache to this instance .