| @@ 266-273 (lines=8) @@ | ||
| 263 | * @param string $annotation The name of the annotation. |
|
| 264 | * @return string |
|
| 265 | */ |
|
| 266 | public function getAnnotation($annotation) |
|
| 267 | { |
|
| 268 | $value = $this->getAnnotationData($annotation); |
|
| 269 | if (is_array($value)) { |
|
| 270 | $value = $this->csvEscape($value); |
|
| 271 | } |
|
| 272 | return $value; |
|
| 273 | } |
|
| 274 | ||
| 275 | /** |
|
| 276 | * Convert a string to a csv. |
|
| @@ 294-301 (lines=8) @@ | ||
| 291 | * @param string $annotation The name of the annotation. |
|
| 292 | * @return string |
|
| 293 | */ |
|
| 294 | public function getAnnotationList($annotation) |
|
| 295 | { |
|
| 296 | $value = $this->getAnnotationData($annotation); |
|
| 297 | if (!is_array($value)) { |
|
| 298 | $value = str_getcsv($value); |
|
| 299 | } |
|
| 300 | return $value; |
|
| 301 | } |
|
| 302 | ||
| 303 | /** |
|
| 304 | * Return a specific named annotation for this command. |
|