|
8 | 8 |
|
9 | 9 | /** |
10 | 10 | * This class provides the GeoIP2 Anonymous IP model. |
11 | | - * |
12 | | - * @property-read bool $isAnonymous This is true if the IP address belongs to |
13 | | - * any sort of anonymous network. |
14 | | - * @property-read bool $isAnonymousVpn This is true if the IP address is |
15 | | - * registered to an anonymous VPN provider. If a VPN provider does not |
16 | | - * register subnets under names associated with them, we will likely only |
17 | | - * flag their IP ranges using the isHostingProvider property. |
18 | | - * @property-read bool $isHostingProvider This is true if the IP address belongs |
19 | | - * to a hosting or VPN provider (see description of isAnonymousVpn property). |
20 | | - * @property-read bool $isPublicProxy This is true if the IP address belongs to |
21 | | - * a public proxy. |
22 | | - * @property-read bool $isResidentialProxy This is true if the IP address is |
23 | | - * on a suspected anonymizing network and belongs to a residential ISP. |
24 | | - * @property-read bool $isTorExitNode This is true if the IP address is a Tor |
25 | | - * exit node. |
26 | | - * @property-read string $ipAddress The IP address that the data in the model is |
27 | | - * for. |
28 | | - * @property-read string $network The network in CIDR notation associated with |
29 | | - * the record. In particular, this is the largest network where all of the |
30 | | - * fields besides $ipAddress have the same value. |
31 | 11 | */ |
32 | 12 | class AnonymousIp implements \JsonSerializable |
33 | 13 | { |
| 14 | + /** |
| 15 | + * @var bool this is true if the IP address belongs to |
| 16 | + * any sort of anonymous network |
| 17 | + */ |
34 | 18 | public readonly bool $isAnonymous; |
| 19 | + |
| 20 | + /** |
| 21 | + * @var bool This is true if the IP address is |
| 22 | + * registered to an anonymous VPN provider. If a VPN provider does not |
| 23 | + * register subnets under names associated with them, we will likely only |
| 24 | + * flag their IP ranges using the isHostingProvider property. |
| 25 | + */ |
35 | 26 | public readonly bool $isAnonymousVpn; |
| 27 | + |
| 28 | + /** |
| 29 | + * @var bool this is true if the IP address belongs |
| 30 | + * to a hosting or VPN provider (see description of isAnonymousVpn property) |
| 31 | + */ |
36 | 32 | public readonly bool $isHostingProvider; |
| 33 | + |
| 34 | + /** |
| 35 | + * @var bool this is true if the IP address belongs to |
| 36 | + * a public proxy |
| 37 | + */ |
37 | 38 | public readonly bool $isPublicProxy; |
| 39 | + |
| 40 | + /** |
| 41 | + * @var bool this is true if the IP address is |
| 42 | + * on a suspected anonymizing network and belongs to a residential ISP |
| 43 | + */ |
38 | 44 | public readonly bool $isResidentialProxy; |
| 45 | + |
| 46 | + /** |
| 47 | + * @var bool this is true if the IP address is a Tor |
| 48 | + * exit node |
| 49 | + */ |
39 | 50 | public readonly bool $isTorExitNode; |
| 51 | + |
| 52 | + /** |
| 53 | + * @var string the IP address that the data in the model is |
| 54 | + * for |
| 55 | + */ |
40 | 56 | public readonly string $ipAddress; |
| 57 | + |
| 58 | + /** |
| 59 | + * @var string The network in CIDR notation associated with |
| 60 | + * the record. In particular, this is the largest network where all of the |
| 61 | + * fields besides $ipAddress have the same value. |
| 62 | + */ |
41 | 63 | public readonly string $network; |
42 | 64 |
|
43 | 65 | /** |
|
0 commit comments