# posts-data-table/1.3.4/lib/Service_Provider.php

Posts Table with Search &amp; Sort, version 1.3.4. 32 lines.

- Page: https://pluginprobe.com/plugins/posts-data-table/1.3.4/code/lib/Service_Provider.php
- Raw: https://pluginprobe.com/plugins/posts-data-table/1.3.4/raw/lib/Service_Provider.php
- Modified: 2021-01-22T18:39:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/posts-data-table/1.3.4/code/lib/Service_Provider.php#L10-L20`.

```php
<?php

namespace Barn2\PTS_Lib;

/**
 * An object that provides services (instances of Barn2\PTS_Lib\Service).
 *
 * @package   Barn2\barn2-lib
 * @author    Barn2 Plugins <support@barn2.co.uk>
 * @license   GPL-3.0
 * @copyright Barn2 Media Ltd
 * @version   1.1
 */
interface Service_Provider {

    /**
     * Get the service for the specified ID.
     *
     * @param string $id The service ID
     * @return Service The service object
     */
    public function get_service( $id );

    /**
     * Get the list of services provided.
     *
     * @return array The list of service objects.
     */
    public function get_services();

}

```
