ExportFileUnit::setOptional()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Maketok\DataMigration\Unit\Type;
4
5
use Maketok\DataMigration\Unit\ExportFileUnitInterface;
6
7
abstract class ExportFileUnit extends ExportDbUnit implements ExportFileUnitInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $reversedMapping;
13
    /**
14
     * @var array
15
     */
16
    protected $reversedConnection;
17
    /**
18
     * @var bool
19
     */
20
    protected $optional = false;
21
22
    /**
23
     * {@inheritdoc}
24
     */
25 13
    public function getReversedMapping()
26
    {
27 13
        return $this->reversedMapping;
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33 17
    public function setReversedMapping($reversedMapping)
34
    {
35 17
        $this->reversedMapping = $reversedMapping;
36 17
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41 16
    public function getReversedConnection()
42
    {
43 16
        return $this->reversedConnection;
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49 16
    public function setReversedConnection($reversedConnection)
50
    {
51 16
        $this->reversedConnection = $reversedConnection;
52 16
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57 12
    public function isOptional()
58
    {
59 12
        return $this->optional;
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65 5
    public function setOptional($optional)
66
    {
67 5
        $this->optional = $optional;
68 5
    }
69
}
70