Documentation

Base
in package

AbstractYes

Upload Validation Base

This class provides the common implementation and abstract interface for all concrete Upload validation subclasses.

Tags
author

Josh Lockhart info@joshlockhart.com

since
1.0.0

Table of Contents

Properties

$message  : string
The error message for this validation

Methods

getMessage()  : string
Get error message
setMessage()  : mixed
Set error message
validate()  : bool
Validate file

Properties

$message

The error message for this validation

protected string $message

Methods

getMessage()

Get error message

public getMessage() : string
Return values
string

setMessage()

Set error message

public setMessage(string $message) : mixed
Parameters
$message : string

validate()

Validate file

public abstract validate(File $file) : bool
Parameters
$file : File
Return values
bool

True if file is valid, false if file is not valid

✖ Error 404 while fetching file: ✖ Error 404 while fetching file: 
On this page

Search results