PHP Class Respect\Validation\Validator

Inheritance: extends Respect\Validation\Rules\AllOf
Mostra file Open project: respect/validation Class Usage Examples

Protected Properties

Property Type Description
$factory

Public Methods

Method Description
__call ( string $method, array $arguments ) : self
__callStatic ( string $ruleName, array $arguments ) : Validator
buildRule ( mixed $ruleSpec, array $arguments = [] ) : Respect\Validation\Validatable
check ( $input )
create ( ) : Validator Create instance validator.
setFactory ( Factory $factory )
with ( string $rulePrefix, boolean $prepend = false )

Protected Methods

Method Description
createException ( )
getFactory ( ) : Factory

Method Details

__call() public method

public __call ( string $method, array $arguments ) : self
$method string
$arguments array
return self

__callStatic() public static method

public static __callStatic ( string $ruleName, array $arguments ) : Validator
$ruleName string
$arguments array
return Validator

buildRule() public static method

public static buildRule ( mixed $ruleSpec, array $arguments = [] ) : Respect\Validation\Validatable
$ruleSpec mixed
$arguments array
return Respect\Validation\Validatable

check() public method

public check ( $input )

create() public static method

Create instance validator.
public static create ( ) : Validator
return Validator

createException() protected method

protected createException ( )

getFactory() protected static method

protected static getFactory ( ) : Factory
return Factory

setFactory() public static method

public static setFactory ( Factory $factory )
$factory Factory

with() public static method

public static with ( string $rulePrefix, boolean $prepend = false )
$rulePrefix string
$prepend boolean

Property Details

$factory protected_oe static_oe property

protected static $factory