Failed Conditions
Push — master ( 6b0328...1f80f7 )
by Alexander
03:19 queued 50s
created

TOverwriteAwarePlugin::isOverwriteMode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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 9
	}
31
32
	/**
33
	 * @inheritDoc
34
	 */
35 26
	public function isOverwriteMode()
36
	{
37 26
		return $this->_overwriteMode;
38
	}
39
40
}
41