package DX::ActionBuilder::ProxySetToAdd;

use DX::Class;

with 'DX::Role::ActionBuilder';

has target_path => (is => 'ro', required => 1);

has proxy_to => (is => 'ro', required => 1);

sub action_for_set_value {
  my ($self, $value) = @_;
  $self->proxy_to->action_for_add_member($self->target_path->[-1], $value);
}

1;
