SpamDetector
Table of Contents
Properties
-
$spamKeywords
: array<string|int, mixed>
Methods
-
__construct()
: mixed
-
addSpamKeywords()
: void
-
containsLinks()
: bool
-
getSpamKeywords()
: array<string|int, mixed>
-
isSpam()
: bool
$spamKeywords
protected
array<string|int, mixed>
$spamKeywords
= []
__construct()
public
__construct() : mixed
addSpamKeywords()
public
addSpamKeywords(array<string|int, mixed> $keywords) : void
Parameters
-
$keywords
: array<string|int, mixed>
-
containsLinks()
public
containsLinks(mixed $message) : bool
Parameters
-
$message
: mixed
-
getSpamKeywords()
public
getSpamKeywords() : array<string|int, mixed>
Return values
array<string|int, mixed>
isSpam()
public
isSpam(LeadQuizSubmission $submission) : bool
Parameters
-
$submission
: LeadQuizSubmission
-