mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 01:14:01 +02:00
start a restructure
This commit is contained in:
24
More/ServiceLocator/ServiceLocatorInterface.php
Normal file
24
More/ServiceLocator/ServiceLocatorInterface.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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);
|
||||
}
|
Reference in New Issue
Block a user