1<?php 2/** 3 * This file is part of phpDocumentor. 4 * 5 * For the full copyright and license information, please view the LICENSE 6 * file that was distributed with this source code. 7 * 8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org> 9 * @license http://www.opensource.org/licenses/mit-license.php MIT 10 * @link http://phpdoc.org 11 */ 12 13namespace phpDocumentor\Reflection\DocBlock\Tags\Formatter; 14 15use phpDocumentor\Reflection\DocBlock\Tag; 16use phpDocumentor\Reflection\DocBlock\Tags\Formatter; 17 18class PassthroughFormatter implements Formatter 19{ 20 /** 21 * Formats the given tag to return a simple plain text version. 22 * 23 * @param Tag $tag 24 * 25 * @return string 26 */ 27 public function format(Tag $tag) 28 { 29 return trim('@' . $tag->getName() . ' ' . (string)$tag); 30 } 31} 32