public static function getType($value)
    {
        if (preg_match(self::REGEXP_TCP, $value)) {
            return self::TYPE_TCP;
        }

        if (preg_match(self::REGEXP_SSL, $value)) {
            return self::TYPE_SSL;
        }

        if (preg_match(self::REGEXP_UNIX, $value)) {
            return self::TYPE_UNIX;
        }

        return null;
    }
public static function getType($value)
    {
        if (preg_match(self::REGEXP_TCP, $value)) {
            return self::TYPE_TCP;
        }

        if (preg_match(self::REGEXP_SSL, $value)) {
            return self::TYPE_SSL;
        }

        if (preg_match(self::REGEXP_UNIX, $value)) {
            return self::TYPE_UNIX;
        }

        return null;
    }
public static function getType ( $ value ) { if ( preg_match ( self :: REGEXP_TCP , $ value ) ) { return self :: TYPE_TCP ; } if ( preg_match ( self :: REGEXP_SSL , $ value ) ) { return self :: TYPE_SSL ; } if ( preg_match ( self :: REGEXP_UNIX , $ value ) ) { return self :: TYPE_UNIX ; } return null ; }
Return the type of an endpoint

@param string $value - endpoint specification value

@return string - endpoint type
Return the type of an endpoint