PHP Class PayPal\Validation\ArgumentValidator

Datei anzeigen Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
validate ( $argument, $argumentName = null ) : boolean Helper method for validating an argument that will be used by this API in any requests.

Method Details

validate() public static method

Helper method for validating an argument that will be used by this API in any requests.
public static validate ( $argument, $argumentName = null ) : boolean
$argument mixed The object to be validated
$argumentName string|null The name of the argument. This will be placed in the exception message for easy reference
return boolean