public function registerDetector(DetectorInterface $spamDetector)
	{
		$detectorId = $this->classSimpleName($spamDetector);

		if (isset($this->detectors[$detectorId]))
		{
			throw new RuntimeException(
				sprintf('Spam Detector [%s] already registered', $detectorId)
			);
		}

		$this->detectors[$detectorId] = $spamDetector;

		return $this;
	}
public function registerDetector(DetectorInterface $spamDetector)
	{
		$detectorId = $this->classSimpleName($spamDetector);

		if (isset($this->detectors[$detectorId]))
		{
			throw new RuntimeException(
				sprintf('Spam Detector [%s] already registered', $detectorId)
			);
		}

		$this->detectors[$detectorId] = $spamDetector;

		return $this;
	}
public function registerDetector ( DetectorInterface $ spamDetector ) { $ detectorId = $ this -> classSimpleName ( $ spamDetector ) ; if ( isset ( $ this -> detectors [ $ detectorId ] ) ) { throw new RuntimeException ( sprintf ( 'Spam Detector [%s] already registered' , $ detectorId ) ) ; } $ this -> detectors [ $ detectorId ] = $ spamDetector ; return $ this ; }
Registers a Spam Detector

@param   object  $spamDetector  SpamDetectorInterface
@return  object  SpamDetector
@throws  RuntimeException
Registers a Spam Detector