PHP Class Symfony\Component\Validator\Constraints\FileValidator

Inheritance: extends Symfony\Component\Validator\ConstraintValidator
ファイルを表示 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
isValid ( $value, Constraint $constraint )
isValid ( mixed $value, Constraint $constraint ) : boolean Checks if the passed value is valid.

Method Details

isValid() public method

public isValid ( $value, Constraint $constraint )
$constraint Symfony\Component\Validator\Constraint

isValid() public method

Checks if the passed value is valid.
public isValid ( mixed $value, Constraint $constraint ) : boolean
$value mixed The value that should be validated
$constraint Symfony\Component\Validator\Constraint The constrain for the validation
return boolean Whether or not the value is valid