trigger = $trigger; $this->journal = $journal; } /** * @return bool */ public function triggered() { $description = strtolower($this->journal->description); $search = strtolower($this->trigger->trigger_value); if ($description == $search) { Log::debug('"' . $description . '" equals "' . $search . '" exactly. Return true.'); return true; } Log::debug('"' . $description . '" does not equal "' . $search . '". Return false.'); return false; } /** * Checks whether this trigger will match all transactions * @return bool */ public function matchesAnything() { return false; } }