BrowscapPHP\Command\ParserCommand::getCache PHP Method

getCache() private method

private getCache ( Symfony\Component\Console\Input\InputInterface $input ) : BrowscapPHP\Cache\BrowscapCacheInterface
$input Symfony\Component\Console\Input\InputInterface
return BrowscapPHP\Cache\BrowscapCacheInterface
    private function getCache(InputInterface $input)
    {
        if (null === $this->cache) {
            $cacheAdapter = new File([File::DIR => $input->getOption('cache')]);
            $this->cache = new BrowscapCache($cacheAdapter);
        }
        return $this->cache;
    }