<NME> ReturnTag.php
<BEF> <?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Code\Generator\DocBlock\Tag;

use Zend\Code\Generator\DocBlock\TagManager;
use Zend\Code\Reflection\DocBlock\Tag\TagInterface as ReflectionTagInterface;

class ReturnTag extends AbstractTypeableTag implements TagInterface
{
    /**
     * @param ReflectionTagInterface $reflectionTag
     * @return ReturnTag
     * @deprecated Use TagManager::createTagFromReflection() instead
     */
    public static function fromReflection(ReflectionTagInterface $reflectionTag)
    {
        $tagManager = new TagManager();
        $tagManager->initializeDefaultTags();
        return $tagManager->createTagFromReflection($reflectionTag);
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'return';
    }

    /**
     * @param string $datatype
     * @return ReturnTag
     * @deprecated Use setTypes() instead
     */
    public function setDatatype($datatype)
    {
        return $this->setTypes($datatype);
    }

    /**
     * @return string
     * @deprecated Use getTypes() or getTypesAsString() instead
     */
    public function getDatatype()
    {
        return $this->getTypesAsString();
    }

    /**
     * @return string
     */
    public function generate()
    {
        $output = '@return '
        . $this->getTypesAsString()
        . (! empty($this->description) ? ' ' . $this->description : '');

        return $output;
    }
}

<MSG> Adjust deprecated tag. Added Version 2.3

<DFF> @@ -17,7 +17,7 @@ class ReturnTag extends AbstractTypeableTag implements TagInterface
     /**
      * @param ReflectionTagInterface $reflectionTag
      * @return ReturnTag
-     * @deprecated Use TagManager::createTagFromReflection() instead
+     * @deprecated Deprecated in 2.3. Use TagManager::createTagFromReflection() instead
      */
     public static function fromReflection(ReflectionTagInterface $reflectionTag)
     {
@@ -37,7 +37,7 @@ class ReturnTag extends AbstractTypeableTag implements TagInterface
     /**
      * @param string $datatype
      * @return ReturnTag
-     * @deprecated Use setTypes() instead
+     * @deprecated Deprecated in 2.3. Use setTypes() instead
      */
     public function setDatatype($datatype)
     {
@@ -46,7 +46,7 @@ class ReturnTag extends AbstractTypeableTag implements TagInterface
 
     /**
      * @return string
-     * @deprecated Use getTypes() or getTypesAsString() instead
+     * @deprecated Deprecated in 2.3. Use getTypes() or getTypesAsString() instead
      */
     public function getDatatype()
     {

Adjust deprecated tag. Added Version 2.3