Change::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
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 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ParityBit\DeploymentNotifier;
4
5
/**
6
 * Details of a change introduced as part of a deployment
7
 */
8
class Change
9
{
10
    /**
11
     * The summary of the change
12
     * @var string
13
     */
14
    public $summary;
15
16
    /**
17
     * The author of the change
18
     * @var string
19
     */
20
    public $author;
21
22
    /**
23
     * The full description of the change
24
     * @var string
25
     */
26
    public $fullDescription;
27
28
    /**
29
     * A reference for the change
30
     * @var string
31
     */
32
    public $reference;
33
34
    /**
35
     * Change constructor
36
     *
37
     * @param string $summary
38
     * @param string $author
39
     * @param string $fullDescription
40
     * @param string $reference
41
     */
42
    public function __construct($summary = null, $author = null, $fullDescription = null, $reference = null)
43
    {
44
        $this->summary = $summary;
45
        $this->author = $author;
46
        $this->fullDescription = $fullDescription;
47
        $this->reference = $reference;
48
    }
49
50
    public function __toString()
51
    {
52
        return $this->summary;
53
    }
54
}
55