Swift_Plugins_AntiFloodPlugin::__construct PHP Method

__construct() public method

Create a new AntiFloodPlugin with $threshold and $sleep time.
public __construct ( integer $threshold = 99, integer $sleep, Swift_Plugins_Sleeper $sleeper = null )
$threshold integer
$sleep integer time
$sleeper Swift_Plugins_Sleeper (not needed really)
    public function __construct($threshold = 99, $sleep = 0, Swift_Plugins_Sleeper $sleeper = null)
    {
        $this->setThreshold($threshold);
        $this->setSleepTime($sleep);
        $this->_sleeper = $sleeper;
    }