Passed
Push — master ( 356755...14835f )
by Gerrit
04:25
created

NullMapping   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 24
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A describeOrigin() 0 4 1
A collectDBALColumns() 0 4 1
1
<?php
2
/**
3
 * Copyright (C) 2018 Gerrit Addiks.
4
 * This package (including this file) was released under the terms of the GPL-3.0.
5
 * You should have received a copy of the GNU General Public License along with this program.
6
 * If not, see <http://www.gnu.org/licenses/> or send me a mail so i can send you a copy.
7
 *
8
 * @license GPL-3.0
9
 *
10
 * @author Gerrit Addiks <[email protected]>
11
 */
12
13
namespace Addiks\RDMBundle\Mapping;
14
15
use Addiks\RDMBundle\Mapping\MappingInterface;
16
use Webmozart\Assert\Assert;
17
use Doctrine\DBAL\Schema\Column;
18
use Addiks\RDMBundle\Mapping\ArrayMappingInterface;
19
20
final class NullMapping implements MappingInterface
21
{
22
23
    /**
24
     * @var string
25
     */
26
    private $origin;
27
28 3
    public function __construct(string $origin = "unknown")
29
    {
30 3
        $this->origin = $origin;
31 3
    }
32
33 1
    public function describeOrigin(): string
34
    {
35 1
        return $this->origin;
36
    }
37
38 1
    public function collectDBALColumns(): array
39
    {
40 1
        return [];
41
    }
42
43
}
44