Files
DesignPatternsPHP/More/ServiceLocator/ServiceLocatorInterface.php
Antonio Spinelli e59d70a0ac start a restructure
2014-03-21 18:03:45 -03:00

24 lines
424 B
PHP

<?php
namespace DesignPatterns\ServiceLocator;
interface ServiceLocatorInterface
{
/**
* Checks if a service is registered.
*
* @param string $interface
*
* @return bool
*/
public function has($interface);
/**
* Gets the service registered for the interface.
*
* @param string $interface
*
* @return mixed
*/
public function get($interface);
}