TextExtractorRegistry implements SingletonInterface

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$instances  : array<string|int, TextExtractorInterface>
Instance cache for text extractor classes
$textExtractorClasses  : array<string|int, mixed>
Registered text extractor class names

Methods

getTextExtractor()  : TextExtractorInterface|null
Checks whether any registered text extractor can deal with a given file and returns it.
getTextExtractorInstances()  : array<string|int, TextExtractorInterface>
Get all registered text extractor instances
registerTextExtractor()  : mixed
Allows to register a text extractor class
createTextExtractorInstance()  : TextExtractorInterface
Create an instance of a certain text extractor class

Properties

$textExtractorClasses

Registered text extractor class names

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

Methods

registerTextExtractor()

Allows to register a text extractor class

public registerTextExtractor(string $className) : mixed
Parameters
$className : string
Tags
throws
InvalidArgumentException

        
On this page

Search results