DNReference   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 2
dl 0
loc 30
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A Name() 0 3 1
A FullName() 0 3 1
A Filename() 0 3 1
1
<?php
2
3
class DNReference extends ViewableData {
4
5
	/**
6
	 * @var Gitonomy\Git\Reference
7
	 */
8
	protected $reference;
9
10
	private static $casting = array(
0 ignored issues
show
Unused Code introduced by
The property $casting is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
11
		'Name' => 'Text',
12
		'FullName' => 'Text',
13
		'Filename' => 'Text'
14
	);
15
16
	public function __construct(Gitonomy\Git\Reference $reference) {
17
		$this->reference = $reference;
18
	}
19
20
	public function Name() {
21
		return $this->reference->getName();
22
	}
23
24
	public function FullName() {
25
		return $this->reference->getCommitHash();
26
	}
27
28
	public function Filename() {
29
		return $this->reference->getFullname();
30
	}
31
32
}
33