MMOframework
Why AI Playground Libraries Developers Agency
FR EN
Build a project live
Index

iScanner

MMO\edms\interfaces · 1 symbol · generated 30 Nov 2026

interface

iScanner

iScanner.php:9

What looks for malware in the bytes of a file before edms keeps them (FileManager::$scanner):

interface MMO\edms\interfaces\iScanner
Namespace
MMO\edms\interfaces
See
ClamdScanner asks a clamd daemon; another antivirus implements the same method.

Methods1

scan($filename)

abstractiScanner.php:16
abstract function scan(string $filename): ?string
$filenamestringa local file
returnsnull | stringnull if nothing was found in $filename, the name of what was found otherwise (Eicar-Test-Signature)
throwsif the file could not be analysed: no answer, an error, a file too big
$scanner->scan('/tmp/upload'); // null, or 'Win.Trojan.Agent-123'