FileSystemMap::setName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace SyncFS\Map;
4
5
/**
6
 * Class FileSystemMap
7
 *
8
 * @package SyncFS\Map
9
 * @author  Matej Velikonja <[email protected]>
10
 */
11
class FileSystemMap implements MapInterface
12
{
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
18
    /**
19
     * @var string
20
     */
21
    private $source;
22
    /**
23
     * @var string
24
     */
25
    private $destination;
26
27
    /**
28
     * @var string
29
     */
30
    private $client;
31
32
    /**
33
     * @param string $name
34
     * @param string $source
35
     * @param string $destination
36
     */
37 7
    public function __construct($name = null, $source = null, $destination = null)
38
    {
39 7
        $this->setName($name);
40 7
        $this->setSource($source);
41 7
        $this->setDestination($destination);
42 7
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function getName()
48
    {
49 1
        return $this->name;
50
    }
51
52
    /**
53
     * @param string $name
54
     *
55
     * @return $this
56
     */
57 7
    public function setName($name)
58
    {
59 7
        $this->name = $name;
60
61 7
        return $this;
62
    }
63
64
    /**
65
     * @param string $destination
66
     *
67
     * @return $this
68
     */
69 7
    public function setDestination($destination)
70
    {
71 7
        $this->destination = $destination;
72
73 7
        return $this;
74
    }
75
76
    /**
77
     * @return string
78
     */
79 4
    public function getDestination()
80
    {
81 4
        return $this->destination;
82
    }
83
84
    /**
85
     * @param string $source
86
     *
87
     * @return $this
88
     */
89 7
    public function setSource($source)
90
    {
91 7
        $this->source = $source;
92
93 7
        return $this;
94
    }
95
96
    /**
97
     * @return string
98
     */
99 4
    public function getSource()
100
    {
101 4
        return $this->source;
102
    }
103
104
    /**
105
     * @return string
106
     */
107
    public function getClient()
108
    {
109
        return $this->client;
110
    }
111
112
    /**
113
     * @param string $client
114
     *
115
     * @return $this
116
     */
117
    public function setClient($client)
118
    {
119
        $this->client = $client;
120
121
        return $this;
122
    }
123
}
124