@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | /** |
| 91 | 91 | * Generator for retrieve all nodes stored. |
| 92 | 92 | * |
| 93 | - * @return null if the head is null (or list is empty) |
|
| 93 | + * @return \Generator if the head is null (or list is empty) |
|
| 94 | 94 | */ |
| 95 | 95 | public function getAll() { |
| 96 | 96 | if($this->head === null) { |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | /** |
| 212 | 212 | * Adds at the beginning a node in the list. |
| 213 | 213 | * |
| 214 | - * @param mixed $data |
|
| 214 | + * @param integer $data |
|
| 215 | 215 | * @return mixed the data stored. |
| 216 | 216 | */ |
| 217 | 217 | public function unshift($data) { |