DNReference::Filename()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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