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

NullFactSourceStatus::combineWith()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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