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

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

PropertyTag.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.94 KiB


 001  <?php
 002  /**
 003   * Zend Framework (http://framework.zend.com/)
 004   *
 005   * @link      http://github.com/zendframework/zf2 for the canonical source repository
 006   * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 007   * @license   http://framework.zend.com/license/new-bsd New BSD License
 008   */
 009   
 010  namespace Zend\Code\Reflection\DocBlock\Tag;
 011   
 012  class PropertyTag implements TagInterface, PhpDocTypedTagInterface
 013  {
 014      /**
 015       * @var array
 016       */
 017      protected $types = array();
 018   
 019      /**
 020       * @var string
 021       */
 022      protected $propertyName = null;
 023   
 024      /**
 025       * @var string
 026       */
 027      protected $description = null;
 028   
 029      /**
 030       * @return string
 031       */
 032      public function getName()
 033      {
 034          return 'property';
 035      }
 036   
 037      /**
 038       * Initializer
 039       *
 040       * @param  string $tagDocblockLine
 041       */
 042      public function initialize($tagDocblockLine)
 043      {
 044          $match = array();
 045          if (!preg_match('#^(.+)?(\$[\S]+)[\s]*(.*)$#m', $tagDocblockLine, $match)) {
 046              return;
 047          }
 048   
 049          if ($match[1] !== '') {
 050              $this->types = explode('|', rtrim($match[1]));
 051          }
 052   
 053          if ($match[2] !== '') {
 054              $this->propertyName = $match[2];
 055          }
 056   
 057          if ($match[3] !== '') {
 058              $this->description = $match[3];
 059          }
 060      }
 061   
 062      /**
 063       * @return null|string
 064       * @deprecated 2.0.4 use getTypes instead
 065       */
 066      public function getType()
 067      {
 068          if (empty($this->types)) {
 069              return;
 070          }
 071   
 072          return $this->types[0];
 073      }
 074   
 075      public function getTypes()
 076      {
 077          return $this->types;
 078      }
 079   
 080      /**
 081       * @return null|string
 082       */
 083      public function getPropertyName()
 084      {
 085          return $this->propertyName;
 086      }
 087   
 088      /**
 089       * @return null|string
 090       */
 091      public function getDescription()
 092      {
 093          return $this->description;
 094      }
 095   
 096      public function __toString()
 097      {
 098          return 'DocBlock Tag [ * @' . $this->getName() . ' ]' . PHP_EOL;
 099      }
 100  }
 101