src/ViewCombination/ViewCombination.php
private function getInputScreens()
    {
        $combinations = $this->getCombinations();
        if (null === $combinations) {
            return [];
        }

        $screenIds = array_map(function ($combination) {
            return $combination['dca_id'];
        }, $combinations['byName']);

        if ($this->cache->contains($cacheKey = 'screens_' . implode(',', $screenIds))) {
            return $this->cache->fetch($cacheKey);
        }

        $screens = $this->inputScreens->fetchInputScreens($screenIds);
        $this->cache->save($cacheKey, $screens);

        return $screens;
    }
private function getInputScreens()
    {
        $combinations = $this->getCombinations();
        if (null === $combinations) {
            return [];
        }

        $screenIds = array_map(function ($combination) {
            return $combination['dca_id'];
        }, $combinations['byName']);

        if ($this->cache->contains($cacheKey = 'screens_' . implode(',', $screenIds))) {
            return $this->cache->fetch($cacheKey);
        }

        $screens = $this->inputScreens->fetchInputScreens($screenIds);
        $this->cache->save($cacheKey, $screens);

        return $screens;
    }
private function getInputScreens ( ) { $ combinations = $ this -> getCombinations ( ) ; if ( null === $ combinations ) { return [ ] ; } $ screenIds = array_map ( function ( $ combination ) { return $ combination [ 'dca_id' ] ; } , $ combinations [ 'byName' ] ) ; if ( $ this -> cache -> contains ( $ cacheKey = 'screens_' . implode ( ',' , $ screenIds ) ) ) { return $ this -> cache -> fetch ( $ cacheKey ) ; } $ screens = $ this -> inputScreens -> fetchInputScreens ( $ screenIds ) ; $ this -> cache -> save ( $ cacheKey , $ screens ) ; return $ screens ; }
Retrieve the input screens.

@return array
Retrieve the input screens .