Code Duplication    Length = 32-32 lines in 2 locations

code/model/options/NoRollbackDeployOption.php 1 location

@@ 2-33 (lines=32) @@
1
<?php
2
class NoRollbackDeployOption implements DeployOption {
3
4
	protected $name = 'no_rollback';
5
6
	protected $title = 'No rollback on deploy failure';
7
8
	protected $defaultValue;
9
10
	public function __construct($defaultValue = false) {
11
		$this->defaultValue = $defaultValue;
12
	}
13
14
	public function __get($name) {
15
		if (method_exists($this, 'get' . $name)) {
16
			return $this->{'get' . $name}();
17
		}
18
		return $this->$name;
19
	}
20
21
	public function getName() {
22
		return $this->name;
23
	}
24
25
	public function getTitle() {
26
		return $this->title;
27
	}
28
29
	public function getDefaultValue() {
30
		return $this->defaultValue;
31
	}
32
33
}
34

code/model/options/PredeployBackupOption.php 1 location

@@ 2-33 (lines=32) @@
1
<?php
2
class PredeployBackupOption implements DeployOption {
3
4
	protected $name = 'predeploy_backup';
5
6
	protected $title = 'Backup database before deploying';
7
8
	protected $defaultValue;
9
10
	public function __construct($defaultValue = false) {
11
		$this->defaultValue = $defaultValue;
12
	}
13
14
	public function __get($name) {
15
		if (method_exists($this, 'get' . $name)) {
16
			return $this->{'get' . $name}();
17
		}
18
		return $this->$name;
19
	}
20
21
	public function getName() {
22
		return $this->name;
23
	}
24
25
	public function getTitle() {
26
		return $this->title;
27
	}
28
29
	public function getDefaultValue() {
30
		return $this->defaultValue;
31
	}
32
33
}
34