@@ -18,6 +18,9 @@ |
||
18 | 18 | */ |
19 | 19 | abstract class AbstractRenderer |
20 | 20 | { |
21 | + /** |
|
22 | + * @param History $value |
|
23 | + */ |
|
21 | 24 | public function setHistory($value) |
22 | 25 | { |
23 | 26 | $this->_history = $value; |
@@ -46,6 +46,9 @@ |
||
46 | 46 | return $this->renderObjects('renderLink', $this->getHistory()->getLinks()); |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $method |
|
51 | + */ |
|
49 | 52 | public function renderObjects($method, $objects) |
50 | 53 | { |
51 | 54 | $res = []; |
@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | protected $_author; |
33 | 33 | protected $_subject; |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $label |
|
37 | + */ |
|
35 | 38 | public function __construct($hash, $label = null, array $comments = []) |
36 | 39 | { |
37 | 40 | $this->setHash($hash); |
@@ -99,6 +102,9 @@ discard block |
||
99 | 102 | return $this->_comments; |
100 | 103 | } |
101 | 104 | |
105 | + /** |
|
106 | + * @param string $value |
|
107 | + */ |
|
102 | 108 | public function setDate($value) |
103 | 109 | { |
104 | 110 | $timestamp = strtotime($value); |
@@ -114,6 +120,9 @@ discard block |
||
114 | 120 | return $this->_date ? date('Y-m-d', $this->_date) : null; |
115 | 121 | } |
116 | 122 | |
123 | + /** |
|
124 | + * @param string $value |
|
125 | + */ |
|
117 | 126 | public function setSubject($value) |
118 | 127 | { |
119 | 128 | $this->_subject = $value; |
@@ -126,6 +135,9 @@ discard block |
||
126 | 135 | return $this->_subject; |
127 | 136 | } |
128 | 137 | |
138 | + /** |
|
139 | + * @param string $value |
|
140 | + */ |
|
129 | 141 | public function setAuthor($value) |
130 | 142 | { |
131 | 143 | $this->_author = $value; |
@@ -82,6 +82,9 @@ |
||
82 | 82 | return null; |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $str |
|
87 | + */ |
|
85 | 88 | public function matchNote($str) |
86 | 89 | { |
87 | 90 | return strpos($str, ' ') ? $str : null; |