Failed Conditions
Pull Request — master (#153)
by Alexander
02:32
created

TOverwriteAwarePlugin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 24
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setOverwriteMode() 0 3 1
A isOverwriteMode() 0 3 1
1
<?php
2
/**
3
 * This file is part of the SVN-Buddy library.
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 *
7
 * @copyright Alexander Obuhovich <[email protected]>
8
 * @link      https://github.com/console-helpers/svn-buddy
9
 */
10
11
namespace ConsoleHelpers\SVNBuddy\Repository\RevisionLog\Plugin;
12
13
14
trait TOverwriteAwarePlugin
15
{
16
17
	/**
18
	 * Overwrite mode.
19
	 *
20
	 * @var boolean
21
	 */
22
	private $_overwriteMode = false;
23
24
	/**
25
	 * @inheritDoc
26
	 */
27 9
	public function setOverwriteMode($overwrite_mode)
28
	{
29 9
		$this->_overwriteMode = $overwrite_mode;
30
	}
31
32
	/**
33
	 * @inheritDoc
34
	 */
35 26
	public function isOverwriteMode()
36
	{
37 26
		return $this->_overwriteMode;
38
	}
39
40
}
41