Swift_Plugins_AntiFloodPlugin::getThreshold PHP Method

getThreshold() public method

Get the number of emails to send before restarting.
public getThreshold ( ) : integer
return integer
    public function getThreshold()
    {
        return $this->_threshold;
    }

Usage Example

 public function testThresholdCanBeSetAndFetched()
 {
     $plugin = new Swift_Plugins_AntiFloodPlugin(10);
     $this->assertEquals(10, $plugin->getThreshold());
     $plugin->setThreshold(100);
     $this->assertEquals(100, $plugin->getThreshold());
 }