NullMemory::saveData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
/**
3
 * Spiral, Core Components
4
 *
5
 * @author Wolfy-J
6
 */
7
8
namespace Spiral\Core;
9
10
final class NullMemory implements MemoryInterface
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 13
    public function loadData(string $section)
16
    {
17 13
        return null;
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23 13
    public function saveData(string $section, $data)
24
    {
25
        //Nothing to do
26
    }
27
}