| 1 |
<?php |
| 2 |
|
| 3 |
namespace Barn2\PTS_Lib; |
| 4 |
|
| 5 |
/** |
| 6 |
* An object that provides services (instances of Barn2\PTS_Lib\Service). |
| 7 |
* |
| 8 |
* @package Barn2\barn2-lib |
| 9 |
* @author Barn2 Plugins <support@barn2.com> |
| 10 |
* @license GPL-3.0 |
| 11 |
* @copyright Barn2 Media Ltd |
| 12 |
* @version 1.1 |
| 13 |
*/ |
| 14 |
interface Service_Provider { |
| 15 |
|
| 16 |
/** |
| 17 |
* Get the service for the specified ID. |
| 18 |
* |
| 19 |
* @param string $id The service ID |
| 20 |
* @return Service The service object |
| 21 |
*/ |
| 22 |
public function get_service( $id ); |
| 23 |
|
| 24 |
/** |
| 25 |
* Get the list of services provided. |
| 26 |
* |
| 27 |
* @return array The list of service objects. |
| 28 |
*/ |
| 29 |
public function get_services(); |
| 30 |
|
| 31 |
} |
| 32 |
|