Files
DesignPatternsPHP/More/ServiceLocator/ServiceLocatorInterface.php
2014-04-16 18:12:52 -03:00

25 lines
428 B
PHP

<?php
namespace DesignPatterns\More\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);
}