Passed
Push — refresh_donut ( aa1285 )
by Akihito
11:35
created

RefreshDonut   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A invoke() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\QueryRepository;
6
7
final class RefreshDonut
8
{
9
    /** @readonly */
10
    public bool $refresh = false;
11
12
    /**
13
     * Set refresh donut flag for AbstractDonutCacheInterceptor
14
     */
15
    public function invoke(): void
16
    {
17
        $this->refresh = true;
18
    }
19
}
20