grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026options['callback']) || !is_callable($this->options['callback'])) { throw new \RuntimeException(sprintf('%s created without valid callback function.', get_class($this))); } $this->callback = $this->options['callback']; } /** * Method to add an entry to the log. * * @param LogEntry $entry The log entry object to add to the log. * * @return void * * @since 3.0.1 * @throws \RuntimeException */ public function addEntry(LogEntry $entry) { // Pass the log entry to the callback function call_user_func($this->callback, $entry); } }