Issues (27)

src/CacheInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
/*
4
 * This file is part of the Cache package.
5
 *
6
 * Copyright (c) Daniel González
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @author Daniel González <[email protected]>
12
 * @author Arnold Daniels <[email protected]>
13
 */
14
15
namespace Desarrolla2\Cache;
16
17
use Psr\SimpleCache\CacheInterface as PsrCacheInterface;
18
use Desarrolla2\Cache\Packer\PackerInterface;
19
use Desarrolla2\Cache\KeyMaker\KeyMakerInterface;
0 ignored issues
show
The type Desarrolla2\Cache\KeyMaker\KeyMakerInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
20
21
/**
22
 * CacheInterface
23
 */
24
interface CacheInterface extends PsrCacheInterface
25
{
26
    /**
27
     * Set option for cache
28
     *
29
     * @param string $key
30
     * @param mixed $value
31
     * @return static
32
     */
33
    public function withOption(string $key, $value);
34
35
    /**
36
     * Set multiple options for cache
37
     *
38
     * @param array $options
39
     * @return static
40
     */
41
    public function withOptions(array $options);
42
43
    /**
44
     * Get option for cache
45
     *
46
     * @param string $key
47
     * @return mixed
48
     */
49
    public function getOption($key);
50
51
    /**
52
     * Set the packer
53
     *
54
     * @param PackerInterface $packer
55
     * @return static
56
     */
57
    public function withPacker(PackerInterface $packer);
58
}
59