Documentation

SpamDetector
in package

Table of Contents

Properties

$spamKeywords  : array<string|int, mixed>

Methods

__construct()  : mixed
addSpamKeywords()  : void
containsLinks()  : bool
getSpamKeywords()  : array<string|int, mixed>
isSpam()  : bool

Properties

$spamKeywords

protected array<string|int, mixed> $spamKeywords = []

Methods

addSpamKeywords()

public addSpamKeywords(array<string|int, mixed> $keywords) : void
Parameters
$keywords : array<string|int, mixed>
public containsLinks(mixed $message) : bool
Parameters
$message : mixed
Return values
bool

getSpamKeywords()

public getSpamKeywords() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results