| Current Path : /home/antonen/chenglong.lt/tmp/admin/helpers/ip/protocols/ |
| Current File : /home/antonen/chenglong.lt/tmp/admin/helpers/ip/protocols/interface.php |
<?php
/**
* @package RSFirewall!
* @copyright (c) 2009 - 2020 RSJoomla!
* @link https://www.rsjoomla.com
* @license GNU General Public License http://www.gnu.org/licenses/gpl-3.0.en.html
*/
defined('_JEXEC') or die('Restricted access');
interface RSFirewallIPInterface
{
// Test returns true if IP matches current protocol.
// @return boolean
public static function test($ip);
// Provides an unpacking method for IP. Used by toBinary().
// @return string
public function toUnpacked();
// Provides a variable that can be used with comparison operators.
// @return mixed
public function toComparable();
// Makes sure mask is clean. Returns cleaned mask as a result.
// @return int
public function cleanMask($mask);
}