SetByNull::set()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
/*
3
 * Copyright (c) Nate Brunette.
4
 * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5
 */
6
7
declare(strict_types=1);
8
9
namespace Tebru\Gson\Internal\AccessorStrategy;
10
11
use Tebru\Gson\Internal\SetterStrategy;
12
13
/**
14
 * Class SetByNull
15
 *
16
 * @author Nate Brunette <[email protected]>
17
 */
18
final class SetByNull implements SetterStrategy
19
{
20
    /**
21
     * Set value to object
22
     *
23
     * @param object $object
24
     * @param mixed $value
25
     * @return void
26
     */
27 1
    public function set($object, $value): void
28
    {
29
        // noop
30 1
    }
31
}
32