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 Webmozart\Assert\Assert; 16 17/** 18 * Url reference used by {@see phpDocumentor\Reflection\DocBlock\Tags\See} 19 */ 20final class Url implements Reference 21{ 22 /** 23 * @var string 24 */ 25 private $uri; 26 27 /** 28 * Url constructor. 29 */ 30 public function __construct($uri) 31 { 32 Assert::stringNotEmpty($uri); 33 $this->uri = $uri; 34 } 35 36 public function __toString() 37 { 38 return $this->uri; 39 } 40} 41