phpDocumentor\Reflection\DocBlock\Tag\ExampleTag::setFileURI PHP Method

setFileURI() public method

This function is equivalent to {@link setFilePath()}, except that it convers an URI to a file path before that. There is no getFileURI(), as {@link getFilePath()} is compatible.
public setFileURI ( type $uri )
$uri type The new file URI to use as an example.
    public function setFileURI($uri)
    {
        $this->isURI = true;
        if (false === strpos($uri, ':')) {
            //Relative URL
            $this->filePath = rawurldecode(str_replace(array('/', '\\'), '%2F', $uri));
        } else {
            //Absolute URL or URI.
            $this->filePath = $uri;
        }
        $this->content = null;
        return $this;
    }