private static function getPadding(Zone $zone)
    {
        $name = $ttl = $type = 0;

        foreach ($zone as $resourceRecord) {
            $name = max($name, strlen($resourceRecord->getName()));
            $ttl = max($ttl, strlen($resourceRecord->getTtl()));
            $type = max($type, strlen($resourceRecord->getType()));
        }

        return [
            $name,
            $ttl,
            $type,
            $name + $ttl + $type + 6,
        ];
    }
private static function getPadding(Zone $zone)
    {
        $name = $ttl = $type = 0;

        foreach ($zone as $resourceRecord) {
            $name = max($name, strlen($resourceRecord->getName()));
            $ttl = max($ttl, strlen($resourceRecord->getTtl()));
            $type = max($type, strlen($resourceRecord->getType()));
        }

        return [
            $name,
            $ttl,
            $type,
            $name + $ttl + $type + 6,
        ];
    }
private static function getPadding ( Zone $ zone ) { $ name = $ ttl = $ type = 0 ; foreach ( $ zone as $ resourceRecord ) { $ name = max ( $ name , strlen ( $ resourceRecord -> getName ( ) ) ) ; $ ttl = max ( $ ttl , strlen ( $ resourceRecord -> getTtl ( ) ) ) ; $ type = max ( $ type , strlen ( $ resourceRecord -> getType ( ) ) ) ; } return [ $ name , $ ttl , $ type , $ name + $ ttl + $ type + 6 , ] ; }
Get the padding required for a zone.

@param Zone $zone

@return array Array order: name, ttl, type, rdata
Get the padding required for a zone .