DesignPatternsPHP/ServiceLocator/ServiceLocatorInterface.php
2014-02-17 16:41:21 +01: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);
}