src/Serializer/Context/MutableSerializationContext.php
public function merge(ResourceSerializationContext $context): MutableSerializationContext
    {
        $cloned = clone $this;

        $cloned->payload = array_merge($cloned->payload, $context->payload);

        return $cloned;
    }
public function merge(ResourceSerializationContext $context): MutableSerializationContext
    {
        $cloned = clone $this;

        $cloned->payload = array_merge($cloned->payload, $context->payload);

        return $cloned;
    }
public function merge ( ResourceSerializationContext $ context ) : MutableSerializationContext { $ cloned = clone $ this ; $ cloned -> payload = array_merge ( $ cloned -> payload , $ context -> payload ) ; return $ cloned ; }
Merge serialization context

@param ResourceSerializationContext $context

@return MutableSerializationContext
Merge serialization context