Completed
Pull Request — 2.x (#1360)
by
unknown
04:30 queued 02:57
created

ResolveCache::getFilters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the `liip/LiipImagineBundle` project.
5
 *
6
 * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Liip\ImagineBundle\Message;
13
14
/** @experimental */
15
class ResolveCache
16
{
17
    /**
18
     * @var string
19
     */
20
    private $path;
21
22
    /**
23
     * @var string[]|null
24
     */
25
    private $filters;
26
27
    /**
28
     * @var bool
29
     */
30
    private $force;
31
32
    /**
33
     * @param string[]|null $filters
34
     */
35
    public function __construct(string $path, ?array $filters = null, bool $force = false)
36
    {
37
        $this->path = $path;
38
        $this->filters = $filters;
39
        $this->force = $force;
40
    }
41
42
    public function getPath(): string
43
    {
44
        return $this->path;
45
    }
46
47
    /**
48
     * @return string[]|null
49
     */
50
    public function getFilters(): ?array
51
    {
52
        return $this->filters;
53
    }
54
55
    public function isForce(): bool
56
    {
57
        return $this->force;
58
    }
59
}
60