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-2017 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\Reference; 14 15use phpDocumentor\Reflection\Fqsen as RealFqsen; 16 17/** 18 * Fqsen reference used by {@see phpDocumentor\Reflection\DocBlock\Tags\See} 19 */ 20final class Fqsen implements Reference 21{ 22 /** 23 * @var RealFqsen 24 */ 25 private $fqsen; 26 27 /** 28 * Fqsen constructor. 29 */ 30 public function __construct(RealFqsen $fqsen) 31 { 32 $this->fqsen = $fqsen; 33 } 34 35 /** 36 * @return string string representation of the referenced fqsen 37 */ 38 public function __toString() 39 { 40 return (string)$this->fqsen; 41 } 42} 43