1 | <?php |
||
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 |
||
|
|||
43 | */ |
||
44 | public function __construct($summary = null, $author = null, $fullDescription = null, $reference = null) |
||
51 | |||
52 | public function __toString() |
||
56 | } |
||
57 |
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.