interface ValidatorInterface implements ProcessorInterface (View source)

Methods

$this
readConfiguration(Repository $config)

Initialize the processor from the configured values.

int
getValidationPriority()

Get the priority of this validator.

bool
shouldValidate(ImportingFile $file, ImportOptions $options)

Check if this validator should validate a file being imported.

validate(ImportingFile $file, ImportOptions $options)

Validate a file being imported.

Details

$this readConfiguration(Repository $config)

Initialize the processor from the configured values.

Parameters

Repository $config

Return Value

$this

int getValidationPriority()

Get the priority of this validator.

Return Value

int

bool shouldValidate(ImportingFile $file, ImportOptions $options)

Check if this validator should validate a file being imported.

Parameters

ImportingFile $file

the file being imported

ImportOptions $options

options to b used when importing the file

Return Value

bool

validate(ImportingFile $file, ImportOptions $options)

Validate a file being imported.

Parameters

ImportingFile $file

the file being imported

ImportOptions $options

options to b used when importing the file

Exceptions

ImportException