/** * @param Notification $notification */ protected function process(Notification $notification) { if (is_file($this->layout)) { ob_start(); include $this->layout; echo ob_get_clean(); } else { echo $notification->getMessage() . PHP_EOL; } }