Archive   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 83
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 83
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setDirectory() 0 3 1
A getDirectory() 0 3 1
A setFormat() 0 3 1
A getFormat() 0 3 1
A setPrefixUrl() 0 3 1
A getPrefixUrl() 0 3 1
A setSkipDev() 0 3 1
A getSkipDev() 0 3 1
1
<?php
2
3
namespace App\Satis\Model;
4
5
use JMS\Serializer\Annotation\Type;
6
use JMS\Serializer\Annotation\SerializedName;
7
8
/**
9
 * Archive Configuration class
10
 *
11
 * Represent the archive part, in a satis configuration file
12
 *
13
 * @author Lukas Homza <[email protected]>
14
 */
15
class Archive {
16
	/**
17
	 * @var string
18
	 * @Type("string")
19
	 */
20
	private $directory;
21
22
	/**
23
	 * @var string
24
	 * @Type("string")
25
	 */
26
	private $format;
27
28
	/**
29
	 * @var string
30
	 * @Type("string")
31
	 * @SerializedName("prefix-url")
32
	 */
33
	private $prefix_url;
34
35
	/**
36
	 * @var boolean
37
	 * @Type("boolean")
38
	 * @SerializedName("skip-dev")
39
	 */
40
	private $skip_dev = true;
41
42
	/**
43
	 * @param string $directory
44
	 */
45
	public function setDirectory($directory) {
46
		$this->directory = $directory;
47
	}
48
49
	/**
50
	 * @return string
51
	 */
52
	public function getDirectory() {
53
		return $this->directory;
54
	}
55
56
	/**
57
	 * @param string $format
58
	 */
59
	public function setFormat($format) {
60
		$this->format = $format;
61
	}
62
63
	/**
64
	 * @return string
65
	 */
66
	public function getFormat() {
67
		return $this->format;
68
	}
69
70
	/**
71
	 * @param string $prefix_url
72
	 */
73
	public function setPrefixUrl($prefix_url) {
74
		$this->prefix_url = $prefix_url;
75
	}
76
77
	/**
78
	 * @return string
79
	 */
80
	public function getPrefixUrl() {
81
		return $this->prefix_url;
82
	}
83
84
	/**
85
	 * @param boolean $skip_dev
86
	 */
87
	public function setSkipDev($skip_dev) {
88
		$this->skip_dev = $skip_dev;
89
	}
90
91
	/**
92
	 * @return boolean
93
	 */
94
	public function getSkipDev() {
95
		return $this->skip_dev;
96
	}
97
}
98