src/Space.php
/**
     * @param string $baseUrl
     * @return Connection
     * @throws \Exception If any of the required constants have not been set.
     */
@param string $baseUrl
@return Connection
@throws \Exception If any of the required constants have not been set.
@param string $baseUrl @return Connection @throws \ Exception If any of the required constants have not been set .
protected static function makeConnection($baseUrl)
    {
        $requiredConstants = ["UW_WS_BASE_PATH", "UW_WS_SSL_KEY_PATH", "UW_WS_SSL_CERT_PATH", "UW_WS_SSL_KEY_PASSWD"];
        foreach ($requiredConstants as $constant) {
            if (defined($constant) === false) {
                throw new \Exception("You must define the constant $constant before using this library.");
            }
        }
        return new Connection(
                              UW_WS_BASE_PATH . $baseUrl,
                              UW_WS_SSL_KEY_PATH,
                              UW_WS_SSL_CERT_PATH,
                              UW_WS_SSL_KEY_PASSWD,
                              defined("UW_WS_VERBOSE") && UW_WS_VERBOSE
                              );
    }
protected static function makeConnection ( $ baseUrl ) { $ requiredConstants = [ " UW_WS_BASE_PATH " , " UW_WS_SSL_KEY_PATH " , " UW_WS_SSL_CERT_PATH " , " UW_WS_SSL_KEY_PASSWD " ] ; foreach ( $ requiredConstants as $ constant ) { if ( defined ( $ constant ) === false ) { throw new \ Exception ( " You must define the constant  $ constant  before using this library. " ) ; } } return new Connection ( UW_WS_BASE_PATH . $ baseUrl , UW_WS_SSL_KEY_PATH , UW_WS_SSL_CERT_PATH , UW_WS_SSL_KEY_PASSWD , defined ( " UW_WS_VERBOSE " ) && UW_WS_VERBOSE ) ; }
@param string $baseUrl
 @return Connection
 @throws \Exception If any of the required constants have not been set.
@param string $baseUrl @return Connection @throws \ Exception If any of the required constants have not been set .