/**
  * 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;
 }
 /**
  * Returns a map with trigger types, mapped to the class representing that type.
  *
  * @return array
  */
 protected static function getTriggerTypes() : array
 {
     if (count(self::$triggerTypes) === 0) {
         self::$triggerTypes = Domain::getRuleTriggers();
     }
     return self::$triggerTypes;
 }
Exemple #3
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();
 }
Exemple #4
0
 /**
  * Binder constructor.
  */
 public function __construct()
 {
     $this->binders = Domain::getBindables();
 }