PHP Class Respect\Validation\Rules\AbstractRelated

Inheritance: extends Respect\Validation\Rules\AbstractRule
ファイルを表示 Open project: respect/validation Class Usage Examples

Public Properties

Property Type Description
$mandatory
$reference
$validator

Public Methods

Method Description
__construct ( $reference, Respect\Validation\Validatable $validator = null, $mandatory = true )
assert ( $input )
check ( $input )
getReferenceValue ( $input )
hasReference ( $input )
setName ( $name )
validate ( $input )

Private Methods

Method Description
decision ( $type, $hasReference, $input )

Method Details

__construct() public method

public __construct ( $reference, Respect\Validation\Validatable $validator = null, $mandatory = true )
$validator Respect\Validation\Validatable

assert() public method

public assert ( $input )

check() public method

public check ( $input )

getReferenceValue() abstract public method

abstract public getReferenceValue ( $input )

hasReference() abstract public method

abstract public hasReference ( $input )

setName() public method

public setName ( $name )

validate() public method

public validate ( $input )

Property Details

$mandatory public_oe property

public $mandatory

$reference public_oe property

public $reference

$validator public_oe property

public $validator