MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/help.cafsindia.com/vendor/laminas/laminas-code/src/Generator/DocBlock/Tag.php
<?php

namespace Laminas\Code\Generator\DocBlock;

use Laminas\Code\Generator\DocBlock\Tag\GenericTag;
use Laminas\Code\Reflection\DocBlock\Tag\TagInterface as ReflectionTagInterface;

/**
 * @deprecated Deprecated in 2.3. Use GenericTag instead
 */
class Tag extends GenericTag
{
    /**
     * @deprecated Deprecated in 2.3. Use TagManager::createTagFromReflection() instead
     *
     * @return Tag
     */
    public static function fromReflection(ReflectionTagInterface $reflectionTag)
    {
        $tagManager = new TagManager();
        $tagManager->initializeDefaultTags();
        return $tagManager->createTagFromReflection($reflectionTag);
    }

    /**
     * @deprecated Deprecated in 2.3. Use GenericTag::setContent() instead
     *
     * @param  string $description
     * @return Tag
     */
    public function setDescription($description)
    {
        return $this->setContent($description);
    }

    /**
     * @deprecated Deprecated in 2.3. Use GenericTag::getContent() instead
     *
     * @return string|null
     */
    public function getDescription()
    {
        return $this->getContent();
    }
}