public function map(ValueObject $value): PolicyUpdateData
    {
        $data = new PolicyUpdateData();

        $data->setModule($value->module);
        $data->setFunction($value->function);
        $data->setLimitations($value->getLimitations());

        return $data;
    }
public function map(ValueObject $value): PolicyUpdateData
    {
        $data = new PolicyUpdateData();

        $data->setModule($value->module);
        $data->setFunction($value->function);
        $data->setLimitations($value->getLimitations());

        return $data;
    }
public function map ( ValueObject $ value ) : PolicyUpdateData { $ data = new PolicyUpdateData ( ) ; $ data -> setModule ( $ value -> module ) ; $ data -> setFunction ( $ value -> function ) ; $ data -> setLimitations ( $ value -> getLimitations ( ) ) ; return $ data ; }
Maps given PolicyUpdateStruct object to a PolicyUpdateData object.

@param PolicyUpdateStruct|ValueObject $value

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