Completed
Pull Request — master (#2775)
by Jeroen
10:25
created

ImportCommand   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 72
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 72
ccs 0
cts 45
cp 0
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultBundle() 0 4 1
A setDefaultBundle() 0 6 1
A getBundles() 0 4 1
A setBundles() 0 6 1
A getGlobals() 0 4 1
A setGlobals() 0 6 1
A getForce() 0 4 1
A setForce() 0 6 1
A getLocales() 0 4 1
A setLocales() 0 6 1
1
<?php
2
3
namespace Kunstmaan\TranslatorBundle\Model\Import;
4
5
class ImportCommand
6
{
7
    private $defaultBundle = false;
8
9
    private $bundles = array();
10
11
    private $globals = true;
12
13
    private $force = false;
14
15
    private $locales = false;
16
17
    public function getDefaultBundle()
18
    {
19
        return $this->defaultBundle;
20
    }
21
22
    public function setDefaultBundle($defaultBundle)
23
    {
24
        $this->defaultBundle = $defaultBundle;
25
26
        return $this;
27
    }
28
29
    public function getBundles()
30
    {
31
        return $this->bundles;
32
    }
33
34
    public function setBundles($bundles)
35
    {
36
        $this->bundles = $bundles;
37
38
        return $this;
39
    }
40
41
    public function getGlobals()
42
    {
43
        return $this->globals;
44
    }
45
46
    public function setGlobals($globals)
47
    {
48
        $this->globals = $globals;
49
50
        return $this;
51
    }
52
53
    public function getForce()
54
    {
55
        return $this->force;
56
    }
57
58
    public function setForce($force)
59
    {
60
        $this->force = $force;
61
62
        return $this;
63
    }
64
65
    public function getLocales()
66
    {
67
        return $this->locales;
68
    }
69
70
    public function setLocales($locales)
71
    {
72
        $this->locales = $locales;
73
74
        return $this;
75
    }
76
}
77