Class Validation
Validation OneSignal API body parameters
Methods summary
public
|
|
public
NNV\OneSignal\Utils\Validation::__call()
|
#
__call( string $methodName, array $methodArgs )
Extends all function in OptionsResolver
Extends all function in OptionsResolver
Parameters
- $methodName
- Method name
- $methodArgs
- $args Args
Returns
|
public
Symfony\Component\OptionsResolver\OptionsResolver
|
#
setMultiRequired( array $requiredOptions )
Multiple set required options
Multiple set required options
Parameters
- $requiredOptions
- Required options
Returns
Symfony\Component\OptionsResolver\OptionsResolver OptionsResolver instance
|
public
Symfony\Component\OptionsResolver\OptionsResolver
|
#
setMultiDefined( array $definedOptions )
Multiple setDefined, setAllowedTypes and setAllowedValues
Multiple setDefined, setAllowedTypes and setAllowedValues
Parameters
- $definedOptions
- Defined options
Returns
Symfony\Component\OptionsResolver\OptionsResolver OptionsResolver instance
|
public
|
#
validate( array $data )
Validate data
Parameters
Throws
mixed Symfony\Component\OptionsResolver\Exception\InvalidOptionsException or null
|