@@ -39,47 +39,47 @@ public function __construct(string $baseUrl, float $requestTimeout = 0.4, bool $
3939 ]);
4040 }
4141
42- public function getAsnDetails (int $ asNumber ): array
42+ public function getAsnDetails (int $ asNumber ): ? array
4343 {
4444 return $ this ->getDataByApi ('asn/ ' . $ asNumber )['data ' ];
4545 }
4646
47- public function getAsnPrefixes (int $ asNumber ): array
47+ public function getAsnPrefixes (int $ asNumber ): ? array
4848 {
4949 return $ this ->getDataByApi ('asn/ ' . $ asNumber . '/prefixes ' )['data ' ];
5050 }
5151
52- public function getAsnPeers (int $ asNumber ): array
52+ public function getAsnPeers (int $ asNumber ): ? array
5353 {
5454 return $ this ->getDataByApi ('asn/ ' . $ asNumber . '/peers ' )['data ' ];
5555 }
5656
57- public function getAsnUpstreams (int $ asNumber ): array
57+ public function getAsnUpstreams (int $ asNumber ): ? array
5858 {
5959 return $ this ->getDataByApi ('asn/ ' . $ asNumber . '/upstreams ' )['data ' ];
6060 }
6161
62- public function getAsnDownstreams (int $ asNumber ): array
62+ public function getAsnDownstreams (int $ asNumber ): ? array
6363 {
6464 return $ this ->getDataByApi ('asn/ ' . $ asNumber . '/downstreams ' )['data ' ];
6565 }
6666
67- public function getPrefix (string $ ipAddress , int $ cidr ): array
67+ public function getPrefix (string $ ipAddress , int $ cidr ): ? array
6868 {
6969 return $ this ->getDataByApi ('prefix/ ' . $ ipAddress . '/ ' . $ cidr )['data ' ];
7070 }
7171
72- public function getIPDetails (string $ ipAddress ): array
72+ public function getIPDetails (string $ ipAddress ): ? array
7373 {
7474 return $ this ->getDataByApi ('ip/ ' . $ ipAddress )['data ' ];
7575 }
7676
77- public function getIXDetails (int $ ixId ): array
77+ public function getIXDetails (int $ ixId ): ? array
7878 {
7979 return $ this ->getDataByApi ('ix/ ' . $ ixId )['data ' ];
8080 }
8181
82- private function getDataByApi (string $ urlPart ): array
82+ private function getDataByApi (string $ urlPart ): ? array
8383 {
8484 if ($ this ->caching ) {
8585 $ response = $ this ->cache ->load ($ urlPart );
0 commit comments