1<?php
2
3declare(strict_types=1);
4
5/**
6 * This file is part of phpDocumentor.
7 *
8 *  For the full copyright and license information, please view the LICENSE
9 *  file that was distributed with this source code.
10 *
11 * @link http://phpdoc.org
12 */
13
14namespace phpDocumentor\Reflection\DocBlock\Tags\Reference;
15
16use Webmozart\Assert\Assert;
17
18/**
19 * Url reference used by {@see \phpDocumentor\Reflection\DocBlock\Tags\See}
20 */
21final class Url implements Reference
22{
23    /** @var string */
24    private $uri;
25
26    public function __construct(string $uri)
27    {
28        Assert::stringNotEmpty($uri);
29        $this->uri = $uri;
30    }
31
32    public function __toString() : string
33    {
34        return $this->uri;
35    }
36}
37