Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ReturnTag.php
01 <?php
02 /**
03 * Zend Framework (http://framework.zend.com/)
04 *
05 * @link http://github.com/zendframework/zf2 for the canonical source repository
06 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
07 * @license http://framework.zend.com/license/new-bsd New BSD License
08 */
09
10 namespace Zend\Code\Generator\DocBlock\Tag;
11
12 use Zend\Code\Generator\DocBlock\TagManager;
13 use Zend\Code\Reflection\DocBlock\Tag\TagInterface as ReflectionTagInterface;
14
15 class ReturnTag extends AbstractTypeableTag implements TagInterface
16 {
17 /**
18 * @param ReflectionTagInterface $reflectionTag
19 * @return ReturnTag
20 * @deprecated Deprecated in 2.3. Use TagManager::createTagFromReflection() instead
21 */
22 public static function fromReflection(ReflectionTagInterface $reflectionTag)
23 {
24 $tagManager = new TagManager();
25 $tagManager->initializeDefaultTags();
26 return $tagManager->createTagFromReflection($reflectionTag);
27 }
28
29 /**
30 * @return string
31 */
32 public function getName()
33 {
34 return 'return';
35 }
36
37 /**
38 * @param string $datatype
39 * @return ReturnTag
40 * @deprecated Deprecated in 2.3. Use setTypes() instead
41 */
42 public function setDatatype($datatype)
43 {
44 return $this->setTypes($datatype);
45 }
46
47 /**
48 * @return string
49 * @deprecated Deprecated in 2.3. Use getTypes() or getTypesAsString() instead
50 */
51 public function getDatatype()
52 {
53 return $this->getTypesAsString();
54 }
55
56 /**
57 * @return string
58 */
59 public function generate()
60 {
61 $output = '@return '
62 . $this->getTypesAsString()
63 . (! empty($this->description) ? ' ' . $this->description : '');
64
65 return $output;
66 }
67 }
68