Completed
Push — master ( 01610c...e02a57 )
by Vojtěch
9s
created

Profile::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace SixtyEightPublishers\Application;
4
5
6
/**
7
 * @internal
8
 */
9
class Profile
10
{
11
	/** @var string  */
12
	private $name;
13
14
	/** @var array  */
15
	private $countries;
16
17
	/** @var array  */
18
	private $languages;
19
20
	/** @var array  */
21
	private $currencies;
22
23
	/** @var array  */
24
	private $domains;
25
26
	/** @var bool  */
27
	private $enabled = TRUE;
28
29
	/**
30
	 * @param string        $name
31
	 * @param array         $countries
32
	 * @param array         $languages
33
	 * @param array         $currencies
34
	 * @param array         $domains
35
	 */
36
	public function __construct($name, array $countries, array $languages, array $currencies, array $domains)
37
	{
38
		$this->name = $name;
39
		$this->countries = $countries;
40
		$this->languages = $languages;
41
		$this->currencies = $currencies;
42
		$this->domains = $domains;
43
	}
44
45
	/**
46
	 * @param bool $enabled
47
	 *
48
	 * @return void
49
	 */
50
	public function setEnabled($enabled = true)
51
	{
52
		$this->enabled = $enabled;
53
	}
54
55
	/**
56
	 * @return string
57
	 */
58
	public function getName()
59
	{
60
		return $this->name;
61
	}
62
63
	/**
64
	 * @return array
65
	 */
66
	public function getCountries()
67
	{
68
		return $this->countries;
69
	}
70
71
	/**
72
	 * @return array
73
	 */
74
	public function getLanguages()
75
	{
76
		return $this->languages;
77
	}
78
79
	/**
80
	 * @return array
81
	 */
82
	public function getCurrencies()
83
	{
84
		return $this->currencies;
85
	}
86
87
	/**
88
	 * @return array
89
	 */
90
	public function getDomains()
91
	{
92
		return $this->domains;
93
	}
94
95
	/**
96
	 * @return bool
97
	 */
98
	public function isEnabled()
99
	{
100
		return $this->enabled;
101
	}
102
103
}