mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
25 lines
428 B
PHP
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);
|
|
}
|