/**
  * Returns a map with actiontypes, mapped to the class representing that type
  *
  * @return array
  */
 protected static function getActionTypes() : array
 {
     if (count(self::$actionTypes) === 0) {
         self::$actionTypes = Domain::getRuleActions();
     }
     return self::$actionTypes;
 }
Esempio n. 2
0
 /**
  * Processor constructor.
  *
  * @param Rule               $rule
  * @param TransactionJournal $journal
  */
 public function __construct(Rule $rule, TransactionJournal $journal)
 {
     $this->rule = $rule;
     $this->journal = $journal;
     $this->triggerTypes = Domain::getRuleTriggers();
     $this->actionTypes = Domain::getRuleActions();
 }