PHP Class Respect\Validation\Rules\Mimetype

Author: Henrique Moody ([email protected])
Inheritance: extends Respect\Validation\Rules\AbstractRule
Mostrar archivo Open project: respect/validation Class Usage Examples

Public Properties

Property Type Description
$mimetype string

Public Methods

Method Description
__construct ( string $mimetype, finfo $fileInfo = null )
validate ( $input )

Method Details

__construct() public method

public __construct ( string $mimetype, finfo $fileInfo = null )
$mimetype string
$fileInfo finfo

validate() public method

public validate ( $input )

Property Details

$mimetype public_oe property

public string $mimetype
return string