mouf/utils.common.url-interface

This package contains an interface used by many objects to say they represent a URL. The concept is very simple, the object implements a getUrl method, and that's it!

v1.0.0 2013-10-29 18:21 UTC

README

This package contains an interface used by many objects to declare they represent a single URL.

If your objects represent an URL (for instance your object is a link, they should implement UrlInterface. An object implementing this interface will return a single URL, as a string when the "getUrl()" method is called.

This is a very simple and useful system for classes representing links, pages, etc...

namespace Mouf\Utils;

interface UrlInterface {
	
	/**
	 * Returns the URL represented by this object, as a string.
	 * 
	 * @return string
	 */
	public function getUrl();
}

This package comes with a simple Url class that implements this interface.

Mouf package

This package is part of Mouf (http://mouf-php.com), an effort to ensure good developing practices by providing a graphical dependency injection framework.