Completed
Push — master ( 07aa67...ce71ee )
by Michael
03:29
created

Change::__toString()   A

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
     * @return null
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
43
     */
44
    public function __construct($summary = null, $author = null, $fullDescription = null, $reference = null)
45
    {
46
        $this->summary = $summary;
47
        $this->author = $author;
48
        $this->fullDescription = $fullDescription;
49
        $this->reference = $reference;
50
    }
51
52
    public function __toString()
53
    {
54
        return $this->summary;
55
    }
56
}
57