src/Rocketeer/Services/Connections/Credentials/Modules/ConnectionsKeychain.php
public function createConnectionKey($connection = null, $server = null, $stage = null)
    {
        if ($connection instanceof ConnectionKey) {
            return $connection;
        }

        // Concatenate
        $handle = new ConnectionKey([
            'name' => $connection,
            'server' => (int) $server,
            'stage' => $stage,
        ]);

        // Populate credentials
        $handle->servers = $this->getServersCredentials($handle);

        return $handle;
    }
public function createConnectionKey($connection = null, $server = null, $stage = null)
    {
        if ($connection instanceof ConnectionKey) {
            return $connection;
        }

        // Concatenate
        $handle = new ConnectionKey([
            'name' => $connection,
            'server' => (int) $server,
            'stage' => $stage,
        ]);

        // Populate credentials
        $handle->servers = $this->getServersCredentials($handle);

        return $handle;
    }
public function createConnectionKey ( $ connection = null , $ server = null , $ stage = null ) { if ( $ connection instanceof ConnectionKey ) { return $ connection ; } // Concatenate $ handle = new ConnectionKey ( [ 'name' => $ connection , 'server' => ( int ) $ server , 'stage' => $ stage , ] ) ; // Populate credentials $ handle -> servers = $ this -> getServersCredentials ( $ handle ) ; return $ handle ; }
Build the current connection's handle.

@param ConnectionKey|string|null $connection
@param int|null                  $server
@param string|null               $stage

@return ConnectionKey
Build the current connection s handle .