Scalr\Service\Aws\Ec2\V20140615\Ec2Api::_loadRouteTableData PHP Method

_loadRouteTableData() protected method

Loads RouteTableData from simple xml object
protected _loadRouteTableData ( SimpleXMLElement $v ) : Scalr\Service\Aws\Ec2\DataType\RouteTableData
$v SimpleXMLElement
return Scalr\Service\Aws\Ec2\DataType\RouteTableData Returns RouteTableData
    protected function _loadRouteTableData(\SimpleXMLElement $v)
    {
        $item = null;
        if ($this->exist($v)) {
            $routeTableId = (string) $v->routeTableId;
            $item = $this->ec2->getEntityManagerEnabled() ? $this->ec2->routeTable->get($routeTableId) : null;
            if ($item === null) {
                $item = new RouteTableData($routeTableId);
                $item->setEc2($this->ec2);
                $bAttach = true;
            } else {
                $item->resetObject();
                $item->routeTableId = $routeTableId;
                $bAttach = false;
            }
            $item->vpcId = (string) $v->vpcId;
            $item->setRouteSet($this->_loadRouteList($v->routeSet, $routeTableId));
            $item->setTagSet($this->_loadResourceTagSetList($v->tagSet));
            $item->setAssociationSet($this->_loadListByName('RouteTableAssociation', $v->associationSet));
            $item->setPropagatingVgwSet($this->_loadListByName('PropagatingVgw', $v->propagatingVgwSet));
            if ($bAttach && $this->ec2->getEntityManagerEnabled()) {
                $this->getEntityManager()->attach($item);
            }
        }
        return $item;
    }
Ec2Api