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