1<?php
2
3namespace GeoIp2\Model;
4
5/**
6 * This class provides the GeoLite2 ASN model.
7 *
8 * @property-read int|null $autonomousSystemNumber The autonomous system number
9 *     associated with the IP address.
10 * @property-read string|null $autonomousSystemOrganization The organization
11 *     associated with the registered autonomous system number for the IP
12 *     address.
13 * @property-read string $ipAddress The IP address that the data in the model is
14 *     for.
15 */
16class Asn extends AbstractModel
17{
18    protected $autonomousSystemNumber;
19    protected $autonomousSystemOrganization;
20    protected $ipAddress;
21
22    /**
23     * @ignore
24     *
25     * @param mixed $raw
26     */
27    public function __construct($raw)
28    {
29        parent::__construct($raw);
30        $this->autonomousSystemNumber = $this->get('autonomous_system_number');
31        $this->autonomousSystemOrganization =
32            $this->get('autonomous_system_organization');
33        $this->ipAddress = $this->get('ip_address');
34    }
35}
36