This method will be called by the returned closure

@param \Illuminate\Mail\Message $message
@return void
978842
public function setupMessage(Message $message){

        $this->addRecipients($message);

        $this->setSubject($message);

        $this->callCustomBuilder($message);

    }
88612
public function delete($id)
    {
        if ($this->_mails && isset($this->_mails[$id])) {
            $this->_mails[$id]['is_deleted'] = true;
        }
    }
773000
public function error($message)
    {
        $this->_errors[] = $this->log_timestamp() . $message . PHP_EOL;
        $this->debug('ERROR: '.$message);
    }
1234016
protected function log($message)
    {
        if ($this->log_handle == null) {
            $this->log_handle = fopen($this->config['logfile'], 'a');
        }
        fwrite($this->log_handle, $message);
    }
950340
public function setMessage($message)
    {
        if ( ! is_null($message)) $message = (string) $message;

        $this->setAttribute('message', $message);

        return $this;
    }
723078
public function message($message=null) {
        if(is_null($message)) {
            return $this->message;
        }
        $this->message = $message;
    }
938941
public function flash($message)
    {
        if ($message === false) {
            return;
        }

        $this->Flash->set($message, $this->_config['flash']);
    }
6439
public function end($message)
    {
        $this->info($message);

        if ($this->progressBar instanceof ProgressBar) {
            $this->progressBar->setMessage($message);
            $this->progressBar->finish();
        }
    }
684439
public function message(string $message)
    {
        $this->_validations[\count($this->_validations) - 1]['message'] = $message;

        return $this;
    }
852757
protected function _handleLdapError($message)
    {
        $extendedError = $this->_ldap->getDiagnosticMessage();
        if (!is_null($extendedError)) {
            $this->_errors[] = $extendedError;
        }
        $this->_errors[] = $message;
    }
981587
public function send(Message $mail): void
    {
        if (!$this->mailers) {
            throw new InvalidArgumentException('At least one mailer must be provided.');
        }

        $failures = [];
        for ($i = 0; $i < $this->retryCount; $i++) {
            if ($i > 0) {
                \usleep($this->retryWaitTime * 1000);
            }

            foreach ($this->mailers as $mailer) {
                try {
                    $mailer->send($mail);

                    return;

                } catch (SendException $e) {
                    $failures[] = $e;
                    null === $this->onFailure || ($this->onFailure)($this, $e, $mailer, $mail);
                }
            }
        }

        $e = new FallbackMailerException('All mailers failed to send the message.');
        $e->failures = $failures;
        throw $e;
    }
255470
protected function error($message)
    {
        if ($this->output instanceof ConsoleOutputInterface) {
            $this->output->getErrorOutput()->writeln("<error>$message</error>");
        } else {
            $this->output->writeln("<error>$message</error>");
        }
    }
1086747
public function setMessage($title, $message) {
		if ($message == '') throw new \InvalidArgumentException('message parameter is empty');
		$this->title = $title;
		$this->message = $message;
	}
319819
private function keepMessage($level, $message) {
		if(static::LOG_LEVELS[$this->keepMessages] > static::LOG_LEVELS[$level]) {
			return;
		}

		if($level == '' || $level == 'LOG'){
			$keepMessage = $message;
		} else {
			$keepMessage = $level . " " . $message;
		}
		$this->logEntries[] = $keepMessage;
	}
279675
public function sendMessage( $message )
	{
		if( !$this->receiver )
			throw new RuntimeException( 'No Receiver set.' );
		$this->sendMessageTo( $message, $this->receiver->get() );
	}
775453
public function error($message): void
	{
		$message = $this->logMessToArray($message);
		$this->log(array_merge(['SEVERITY' => 'ERROR'], $message));
	}
761400
public function addMessage($message) {
        $migrationName = get_class($this);
        $this->messages[] = sprintf("%s:  %s\n", $migrationName, $message);
    }