Completed
Pull Request — master (#602)
by Sean
04:48 queued 01:00
created

NoRollbackDeployOption   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
A getTitle() 0 3 1
A getDefaultValue() 0 3 1
1
<?php
2
class NoRollbackDeployOption implements DeployOption {
3
4
	protected $defaultValue;
5
6
	public function __construct($defaultValue = false) {
7
		$this->defaultValue = $defaultValue;
8
	}
9
10
	public function getName() {
11
		return 'norollback';
12
	}
13
14
	public function getTitle() {
15
		return 'No rollback on deploy failure';
16
	}
17
18
	public function getDefaultValue() {
19
		return $this->defaultValue;
20
	}
21
22
}
23