mirror of
https://github.com/nextcloud/server.git
synced 2025-02-12 12:09:14 +00:00
bb598c8451
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
35 lines
602 B
PHP
35 lines
602 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCP\Security\Ip;
|
|
|
|
/**
|
|
* @since 30.0.0
|
|
*/
|
|
interface IAddress {
|
|
/**
|
|
* Check if a given IP address is valid
|
|
*
|
|
* @since 30.0.0
|
|
*/
|
|
public static function isValid(string $ip): bool;
|
|
|
|
/**
|
|
* Check if current address is contained by given ranges
|
|
*
|
|
* @since 30.0.0
|
|
*/
|
|
public function matches(IRange ... $ranges): bool;
|
|
|
|
/**
|
|
* Normalized IP address
|
|
*
|
|
* @since 30.0.0
|
|
*/
|
|
public function __toString(): string;
|
|
}
|