public function addService(DataTableHandlerInterface $service, string $id = null)
    {
        $service_id = $id ?? $service::ID;

        if ($service_id !== null) {
            $this->services[$service_id] = $service;
        }
    }
public function addService(DataTableHandlerInterface $service, string $id = null)
    {
        $service_id = $id ?? $service::ID;

        if ($service_id !== null) {
            $this->services[$service_id] = $service;
        }
    }
public function addService ( DataTableHandlerInterface $ service , string $ id = null ) { $ service_id = $ id ?? $ service :: ID ; if ( $ service_id !== null ) { $ this -> services [ $ service_id ] = $ service ; } }
Registers specified DataTable handler.

@param DataTableHandlerInterface $service Service of the DataTable handler.
@param string                    $id      DataTable ID.
Registers specified DataTable handler .