Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
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 |
ThrowsTag.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-2015 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\Reflection\DocBlock\Tag;
11
12 class ThrowsTag implements TagInterface, PhpDocTypedTagInterface
13 {
14 /**
15 * @var array
16 */
17 protected $types = array();
18
19 /**
20 * @var string
21 */
22 protected $description = null;
23
24 /**
25 * @return string
26 */
27 public function getName()
28 {
29 return 'throws';
30 }
31
32 /**
33 * @param string $tagDocBlockLine
34 * @return void
35 */
36 public function initialize($tagDocBlockLine)
37 {
38 $matches = array();
39 preg_match('#([\w|\\\]+)(?:\s+(.*))?#', $tagDocBlockLine, $matches);
40
41 $this->types = explode('|', $matches[1]);
42
43 if (isset($matches[2])) {
44 $this->description = $matches[2];
45 }
46 }
47
48 /**
49 * Get return variable type
50 *
51 * @return string
52 * @deprecated 2.0.4 use getTypes instead
53 */
54 public function getType()
55 {
56 return implode('|', $this->getTypes());
57 }
58
59 /**
60 * @return array
61 */
62 public function getTypes()
63 {
64 return $this->types;
65 }
66
67 /**
68 * @return string
69 */
70 public function getDescription()
71 {
72 return $this->description;
73 }
74 }
75