Passed
Push — travis-bionic ( 744b84 )
by Robin
03:35
created

Change   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 28
ccs 0
cts 8
cp 0
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 2 1
A __construct() 0 3 1
A getCode() 0 2 1
1
<?php
2
/**
3
 * @copyright Copyright (c) 2016 Robin Appelman <[email protected]>
4
 * This file is licensed under the Licensed under the MIT license:
5
 * http://opensource.org/licenses/MIT
6
 *
7
 */
8
9
namespace Icewind\SMB;
10
11
class Change {
12
	private $code;
13
14
	private $path;
15
16
	/**
17
	 * Change constructor.
18
	 *
19
	 * @param $code
20
	 * @param $path
21
	 */
22
	public function __construct($code, $path) {
23
		$this->code = $code;
24
		$this->path = $path;
25
	}
26
27
	/**
28
	 * @return integer
29
	 */
30
	public function getCode() {
31
		return $this->code;
32
	}
33
34
	/**
35
	 * @return string
36
	 */
37
	public function getPath() {
38
		return $this->path;
39
	}
40
}
41