• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

markrogoyski / ipv4-subnet-calculator-php / 22473410450

27 Feb 2026 04:56AM UTC coverage: 82.311% (-15.6%) from 97.956%
22473410450

push

github

markrogoyski
Changes for version 5.0.0.

577 of 701 new or added lines in 13 files covered. (82.31%)

577 of 701 relevant lines covered (82.31%)

71.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Internal/IPv4.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace IPv4\Internal;
6

7
/**
8
 * IPv4 protocol constants.
9
 *
10
 * Provides fundamental IPv4 constants used throughout the library for address
11
 * calculations and validations.
12
 *
13
 * @internal This class is not part of the public API
14
 */
15
final class IPv4
16
{
17
    /**
18
     * Maximum valid IPv4 address value (255.255.255.255).
19
     */
20
    public const MAX_ADDRESS = 4_294_967_295; // 0xFFFFFFFF
21

22
    /**
23
     * Total IPv4 address space (2^32).
24
     */
25
    public const ADDRESS_SPACE = 4_294_967_296;
26

27
    /**
28
     * Maximum usable hosts in the entire IPv4 space (/0 network).
29
     * Excludes network (0.0.0.0) and broadcast (255.255.255.255) addresses.
30
     */
31
    public const MAX_HOSTS = 4_294_967_294; // 2^32 - 2
32

33
    /**
34
     * Prevent instantiation.
35
     * @psalm-suppress UnusedConstructor
36
     */
37
    private function __construct()
38
    {
NEW
39
    }
×
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc