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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

ThrowsTag.php

Zuletzt modifiziert: 02.04.2025, 15:04 - Dateigröße: 1.52 KiB


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