1 package DX::Step::Normal;
5 has actions => (is => 'ro', required => 1);
7 has depends_on => (is => 'ro', required => 1);
9 has alternative_step => (is => 'ro');
11 sub but_with_alternative_step {
12 my ($self, $step) = @_;
13 bless { %$self, alternative_step => $step }, ref($self);
17 my ($self, $old_hyp) = @_;
18 return ($self->_apply_to_hyp($old_hyp), $self->alternative_step);
22 my ($self, $old_hyp) = @_;
23 return undef unless my $hyp = $old_hyp->with_actions(@{$self->actions});
24 return $hyp->resolve_head_dependent_on($self->depends_on);