public function reverseMap($data): PolicyUpdateStruct
    {
        $policyUpdateStruct = new PolicyUpdateStruct();

        foreach ($data->getLimitations() as $limitation) {
            if (!empty($limitation->limitationValues)) {
                $policyUpdateStruct->addLimitation($limitation);
            }
        }

        return $policyUpdateStruct;
    }
public function reverseMap($data): PolicyUpdateStruct
    {
        $policyUpdateStruct = new PolicyUpdateStruct();

        foreach ($data->getLimitations() as $limitation) {
            if (!empty($limitation->limitationValues)) {
                $policyUpdateStruct->addLimitation($limitation);
            }
        }

        return $policyUpdateStruct;
    }
public function reverseMap ( $ data ) : PolicyUpdateStruct { $ policyUpdateStruct = new PolicyUpdateStruct ( ) ; foreach ( $ data -> getLimitations ( ) as $ limitation ) { if ( ! empty ( $ limitation -> limitationValues ) ) { $ policyUpdateStruct -> addLimitation ( $ limitation ) ; } } return $ policyUpdateStruct ; }
Maps given PolicyUpdateData object to a PolicyUpdateStruct object.

@param PolicyUpdateData $data

@return PolicyUpdateStruct
Maps given PolicyUpdateData object to a PolicyUpdateStruct object .