Closed zanbaldwin closed 2 years ago
Add new getCommonCidr() helper method to IP interface, and implementations in AbstractIP and Multi, including unit tests and documentation.
getCommonCidr()
AbstractIP
Multi
use Darsyn\IP\Version\IPv4 as IP; $one = IP::factory('192.168.247.2'); $two = IP::factory('192.168.199.43'); $one->getCommonCidr($two); // int(18)
Do not merge until after #75, #76, and #78 (expected conflicts).
Add new
getCommonCidr()
helper method to IP interface, and implementations inAbstractIP
andMulti
, including unit tests and documentation.Do not merge until after #75, #76, and #78 (expected conflicts).