[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/vendor/zendframework/zend-code/src/Generator/DocBlock/ -> Tag.php (source)

   1  <?php
   2  /**
   3   * Zend Framework (http://framework.zend.com/)
   4   *
   5   * @link      http://github.com/zendframework/zf2 for the canonical source repository
   6   * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
   7   * @license   http://framework.zend.com/license/new-bsd New BSD License
   8   */
   9  
  10  namespace Zend\Code\Generator\DocBlock;
  11  
  12  use Zend\Code\Generator\DocBlock\Tag\GenericTag;
  13  use Zend\Code\Reflection\DocBlock\Tag\TagInterface as ReflectionTagInterface;
  14  
  15  /**
  16   * @deprecated Deprecated in 2.3. Use GenericTag instead
  17   */
  18  class Tag extends GenericTag
  19  {
  20      /**
  21       * @param  ReflectionTagInterface $reflectionTag
  22       * @return Tag
  23       * @deprecated Deprecated in 2.3. Use TagManager::createTagFromReflection() instead
  24       */
  25      public static function fromReflection(ReflectionTagInterface $reflectionTag)
  26      {
  27          $tagManager = new TagManager();
  28          $tagManager->initializeDefaultTags();
  29          return $tagManager->createTagFromReflection($reflectionTag);
  30      }
  31  
  32      /**
  33       * @param  string $description
  34       * @return Tag
  35       * @deprecated Deprecated in 2.3. Use GenericTag::setContent() instead
  36       */
  37      public function setDescription($description)
  38      {
  39          return $this->setContent($description);
  40      }
  41  
  42      /**
  43       * @return string
  44       * @deprecated Deprecated in 2.3. Use GenericTag::getContent() instead
  45       */
  46      public function getDescription()
  47      {
  48          return $this->getContent();
  49      }
  50  }


Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1