Passed
Push — feature/code-analysis ( e964aa...4fe35d )
by Jonathan
14:33
created

NullFactSourceStatus   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isSet() 0 3 1
A combineWith() 0 3 1
1
<?php
2
3
/**
4
 * webtrees-lib: MyArtJaub library for webtrees
5
 *
6
 * @package MyArtJaub\Webtrees
7
 * @subpackage IsSourced
8
 * @author Jonathan Jaubart <[email protected]>
9
 * @copyright Copyright (c) 2009-2022, Jonathan Jaubart
10
 * @license https://www.gnu.org/licenses/gpl.html GNU General Public License, version 3
11
 */
12
13
declare(strict_types=1);
14
15
namespace MyArtJaub\Webtrees\Module\IsSourced\Data;
16
17
/**
18
 * Null class for FactSourceStatus, base class before any calculation.
19
 */
20
class NullFactSourceStatus extends FactSourceStatus
21
{
22
    /**
23
     * {@inheritDoc}
24
     * @see \MyArtJaub\Webtrees\Module\IsSourced\Data\SourceStatus::isSet()
25
     */
26
    public function isSet(): bool
27
    {
28
        return false;
29
    }
30
31
    /**
32
     * {@inheritDoc}
33
     * @see \MyArtJaub\Webtrees\Module\IsSourced\Data\FactSourceStatus::combineWith()
34
     */
35
    public function combineWith(SourceStatus $other)
36
    {
37
        return $other;
38
    }
39
}
40