initial commit

This commit is contained in:
kristuff 2020-05-15 15:51:24 +02:00
parent d17b5e1739
commit 1c1fe7c58e
2 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@
[![License](https://poser.pugx.org/kristuff/abuseipdb/license)](https://packagist.org/packages/kristuff/abuseipdb)
*see also [kristuff/abuseipdb-cli](https://github.com/kristuff/abuseipdb-cli) for the `CLI` version*
***see also [kristuff/abuseipdb-cli](https://github.com/kristuff/abuseipdb-cli) for the `CLI` version***
Features
--------

View file

@ -122,12 +122,12 @@ abstract class ApiDefintion
/**
* Get the category id corresponding to given name
*
* @access protected
* @access public
* @param string $categoryName The report categoriy name
*
* @return string|bool The category id in string format if found, otherwise false
*/
protected function getCategoryIdbyName(string $categoryName)
public function getCategoryIdbyName(string $categoryName)
{
foreach ($this->aipdbApiCategories as $cat){
if ($cat[0] === $categoryName) {
@ -142,12 +142,12 @@ abstract class ApiDefintion
/**
* Get the category name corresponding to given id
*
* @access protected
* @access public
* @param string $categoryId The report category id
*
* @return string|bool The category name if found, otherwise false
*/
protected function getCategoryNameById(string $categoryId)
public function getCategoryNameById(string $categoryId)
{
foreach ($this->aipdbApiCategories as $cat){
if ($cat[1] === $categoryId) {
@ -163,7 +163,7 @@ abstract class ApiDefintion
* Get the index of category corresponding to given value
*
* @access protected
* @param string $value The report category id
* @param string $value The report category id or name
* @param string $index The index in value array
*
* @return int|bool The category index if found, otherwise false