Valdi\Validator\OrCombine

class Valdi\Validator\OrCombine
Validator to combine other validators with a logical “or”.
property $invalidDetails

Holds the invalid validators.

checkParameters()

Checks whether the given parameters fulfil: - At least three given - The first one is a Validator or a subclass of it

Parameters:
  • $parameters (array) – the validation parameters
Throws:

ValidationException $ thrown if the amount of parameters is less than three or the first parameter is not a Validator

isValid()

{@inheritdoc}

getInvalidDetails()

{@inheritdoc}