Lullabot/mpx-php

View on GitHub
src/ToUriInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Lullabot\Mpx;

use Psr\Http\Message\UriInterface;

/**
 * Interface representing classes that can be rendered as a URI.
 */
interface ToUriInterface
{
    /**
     * Return this object as a URI.
     */
    public function toUri(): UriInterface;

    /**
     * Return this object as a URI string.
     *
     * @return string
     */
    public function __toString();
}