Skip to content

Commit

Permalink
Add IpRanges::getNetworks()
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Aug 3, 2024
1 parent ef2692a commit db92cae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/IpRanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ public function getRanges(): array
return $this->ranges;

Check warning on line 96 in src/IpRanges.php

View check run for this annotation

Codecov / codecov/patch

src/IpRanges.php#L96

Added line #L96 was not covered by tests
}

/**
* Get custom network aliases, that can be used in {@see $ranges}.
*
* @return array Network aliases.
*
* @see $networks
*/
public function getNetworks(): array

Check warning on line 106 in src/IpRanges.php

View check run for this annotation

Codecov / codecov/patch

src/IpRanges.php#L106

Added line #L106 was not covered by tests
{
return $this->networks;

Check warning on line 108 in src/IpRanges.php

View check run for this annotation

Codecov / codecov/patch

src/IpRanges.php#L108

Added line #L108 was not covered by tests
}

/**
* Whether the IP address with specified CIDR is allowed according to the {@see $ranges} list.
*/
Expand Down

0 comments on commit db92cae

Please sign in to comment.