Completed
Push — master ( dca6dc...178b4a )
by Richard
06:29
created

SourceStatus::commit_hash()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/******************************************************************************
3
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
4
 * 
5
 * Copyright (c) 2016 Richard Klees <[email protected]>
6
 *
7
 * This software is licensed under The MIT License. You should have received 
8
 * a copy of the licence along with the code.
9
 */
10
11
namespace Lechimp\Dicto\App;
12
13
/**
14
 * Describes the current state of the source code under scrutiny.
15
 */
16
class SourceStatus {
17
    /**
18
     * @var string
19
     */
20
    private $commit_hash;
21
22
    public function __construct($commit_hash) {
23
        assert('is_string($commit_hash)');
24
        $this->commit_hash = $commit_hash;
25
    }
26
27
    /**
28
     * @return  string
29
     */
30
    public function commit_hash() {
31
        return $this->commit_hash();
32
    }
33
}
34