Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NoProxyPattern.php

function NoProxyPattern::makeIpData

Creates an ip data object

Parameters

string $ip in_addr:

int $size Byte size of in_addr:

null|string $netmask Network mask:

1 call to NoProxyPattern::makeIpData()
NoProxyPattern::ipCheckData in vendor/composer/composer/src/Composer/Util/NoProxyPattern.php
Creates an object containing IP data if the host is an IP address

File

vendor/composer/composer/src/Composer/Util/NoProxyPattern.php, line 343

Class

NoProxyPattern
Tests URLs against NO_PROXY patterns

Namespace

Composer\Util

Code

private function makeIpData(string $ip, int $size, ?string $netmask) : stdClass {
    return (object) [
        'ip' => $ip,
        'size' => $size,
        'netmask' => $netmask,
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal