None
in package
implements
UrlShortenerInterface
No-op URL shortener (default version, does nothing).
Tags
Interfaces, Classes, Traits and Enums
- UrlShortenerInterface
- URL shortener interface.
Table of Contents
- resolve() : string
- Dummy implementation. Resolving is not necessary because initial URL has not been shortened.
- shorten() : string
- Dummy to return original URL version.
Methods
resolve()
Dummy implementation. Resolving is not necessary because initial URL has not been shortened.
public
resolve(string $id) : string
Parameters
- $id : string
-
ID to resolve
Tags
Return values
string —shorten()
Dummy to return original URL version.
public
shorten(string $url) : string
Parameters
- $url : string
-
URL