LdapTools\AttributeConverter\ConvertExchangeProxyAddress::replaceAddressesOfType PHP Метод

replaceAddressesOfType() защищенный Метод

Remove all addresses of a specific type and replace them with a specific set of addresses.
protected replaceAddressesOfType ( array $addresses, array $replaceWith ) : array
$addresses array
$replaceWith array
Результат array
    protected function replaceAddressesOfType(array $addresses, array $replaceWith)
    {
        $addressType = $this->getArrayValue($this->getOptions()['addressType'], $this->getAttribute());
        $addresses = preg_grep('/^' . $addressType . ':(.*)$/i', $addresses, PREG_GREP_INVERT);
        return array_merge($addresses, $replaceWith);
    }