trigger = $trigger; $this->journal = $journal; } /** * @{inheritdoc} * * @see TriggerInterface::matchesAnything * * @return bool */ public function matchesAnything() { return false; } /** * @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; } }