• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

craue / CraueConfigBundle / 5936153901

22 Aug 2023 08:09AM UTC coverage: 95.074% (-4.9%) from 100.0%
5936153901

push

github

craue
fixed tests with Symfony 6.4 dev

193 of 203 relevant lines covered (95.07%)

29.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/CacheAdapter/DoctrineCacheBundleAdapter.php
1
<?php
2

3
namespace Craue\ConfigBundle\CacheAdapter;
4

5
use Doctrine\Common\Cache\CacheProvider;
6

7
/**
8
 * @author Christian Raue <christian.raue@gmail.com>
9
 * @copyright 2011-2023 Christian Raue
10
 * @license http://opensource.org/licenses/mit-license.php MIT License
11
 */
12
class DoctrineCacheBundleAdapter implements CacheAdapterInterface {
13

14
        /**
15
         * @var CacheProvider
16
         */
17
        private $cache;
18

19
        public function __construct(CacheProvider $cache) {
20
                $this->cache = $cache;
×
21
        }
22

23
        public function clear() {
24
                return $this->cache->deleteAll();
×
25
        }
26

27
        public function has($key) {
28
                return $this->cache->contains($key);
×
29
        }
30

31
        public function get($key) {
32
                return $this->cache->fetch($key);
×
33
        }
34

35
        public function set($key, $value) {
36
                return $this->cache->save($key, $value);
×
37
        }
38

39
        public function setMultiple(array $keysAndValues) {
40
                return $this->cache->saveMultiple($keysAndValues);
×
41
        }
42

43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc