IsCacheHitConstraint   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A toString() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the FOSHttpCache package.
5
 *
6
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FOS\HttpCache\Test\PHPUnit;
13
14
class IsCacheHitConstraint extends AbstractCacheConstraint
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19 1
    public function toString(): string
20
    {
21 1
        return 'is a cache hit';
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27 26
    public function getValue()
28
    {
29 26
        return 'HIT';
30
    }
31
}
32