<?php

namespace MGModule\DNSManager2\mgLibs\custom\dns\submodules\RCodeZero\Adapters;

use MGModule\DNSManager2\mgLibs\custom\dns\record\type\LOC;
use MGModule\DNSManager2\mgLibs\custom\dns\record\type\RecordTypeAbstract;

class LOCAdapter extends AbstractRCodeZeroAdapter
{
    /**
     * @param string $content
     */
    public function createRdata( $content )
    {
        $this->rdata             = new LOC();
        $contentArray            = explode(' ', $content);
        $this->rdata->latitude = $contentArray[0];
        $this->rdata->longitude = $contentArray[1];
        $this->rdata->altitude = $contentArray[2];
        $this->rdata->size = $contentArray[3];
        $this->rdata->horiz_pre = $contentArray[4];
        $this->rdata->vert_pre = $contentArray[5];
    }

}