LazyManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A handleSubmittedData() 0 3 1
A getCurrentData() 0 3 1
1
<?php
2
3
namespace WebTheory\Saveyour\Data;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
use WebTheory\Saveyour\Contracts\Data\FieldDataManagerInterface;
7
8
class LazyManager implements FieldDataManagerInterface
9
{
10 3
    public function getCurrentData(ServerRequestInterface $request)
11
    {
12 3
        return '';
13
    }
14
15
    public function handleSubmittedData(ServerRequestInterface $request, $data): bool
16
    {
17
        return false;
18
    }
19
}
20