src/FACTFinder/Core/Server/AbstractDataProvider.php
public function register(ConnectionData $connectionData)
    {
        $id = self::$nextID++;

        $this->connectionData[$id] = $connectionData;

        $this->log->debug("Registered connection data for ID $id.");

        return $id;
    }
public function register(ConnectionData $connectionData)
    {
        $id = self::$nextID++;

        $this->connectionData[$id] = $connectionData;

        $this->log->debug("Registered connection data for ID $id.");

        return $id;
    }
Make a connection data object known to the data provider and obtain an ID
for it (basically, a handle).

@param ConnectionData $connectionData The connection data object to be
registered.

@param int The ID by which to refer to the connection data in the future.

@throws InvalidArgumentException if the $id is already in use.