triggerValue = $triggerValue; $self->stopProcessing = $stopProcessing; return $self; } /** * @param RuleTrigger $trigger * * @return AbstractTrigger */ public static function makeFromTrigger(RuleTrigger $trigger) { $self = new static; $self->trigger = $trigger; $self->triggerValue = $trigger->trigger_value; $self->stopProcessing = $trigger->stop_processing; return $self; } /** * @param RuleTrigger $trigger * @param TransactionJournal $journal */ public static function makeFromTriggerAndJournal(RuleTrigger $trigger, TransactionJournal $journal) { $self = new static; $self->trigger = $trigger; $self->triggerValue = $trigger->trigger_value; $self->stopProcessing = $trigger->stop_processing; $self->journal = $journal; } /** * @param string $triggerValue * * @return AbstractTrigger */ public static function makeFromTriggerValue(string $triggerValue) { $self = new static; $self->triggerValue = $triggerValue; return $self; } }