Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AbstractTransport.php

function AbstractTransport::setMaxPerSecond

Sets the maximum number of messages to send per second (0 to disable).

Return value

$this

File

vendor/symfony/mailer/Transport/AbstractTransport.php, line 49

Class

AbstractTransport
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\Mailer\Transport

Code

public function setMaxPerSecond(float $rate) : static {
    if (0 >= $rate) {
        $rate = 0;
    }
    $this->rate = $rate;
    $this->lastSent = 0;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal