@@ -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 = []; |
@@ -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; |
@@ -108,6 +108,9 @@ discard block |
||
| 108 | 108 | return $this->_comments; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @param string $value |
|
| 113 | + */ |
|
| 111 | 114 | public function setDate($value) |
| 112 | 115 | { |
| 113 | 116 | $timestamp = strtotime($value); |
@@ -123,6 +126,9 @@ discard block |
||
| 123 | 126 | return $this->_date ? date('Y-m-d', $this->_date) : null; |
| 124 | 127 | } |
| 125 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $value |
|
| 131 | + */ |
|
| 126 | 132 | public function setSubject($value) |
| 127 | 133 | { |
| 128 | 134 | $this->_subject = $value; |
@@ -130,11 +136,17 @@ discard block |
||
| 130 | 136 | return $this; |
| 131 | 137 | } |
| 132 | 138 | |
| 139 | + /** |
|
| 140 | + * @return string |
|
| 141 | + */ |
|
| 133 | 142 | public function getSubject() |
| 134 | 143 | { |
| 135 | 144 | return $this->_subject; |
| 136 | 145 | } |
| 137 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $value |
|
| 149 | + */ |
|
| 138 | 150 | public function setAuthor($value) |
| 139 | 151 | { |
| 140 | 152 | $this->_author = $value; |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | protected $_links = []; |
| 33 | 33 | protected $_tags = []; |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $value |
|
| 37 | + */ |
|
| 35 | 38 | public function setProject($value) |
| 36 | 39 | { |
| 37 | 40 | $this->_project = $value; |