src/main/php/com-realexpayments-hpp-sdk/validators/SupplementaryDataLengthValidator.php
public function validate( $hppRequest, Constraint $constraint ) {

		foreach ( $hppRequest->getSupplementaryData() as $supplementaryData ) {
			if ( strlen( $supplementaryData ) > $this->maxLength ) {
				$this->context->buildViolation( $constraint->message )
				              ->atPath( 'supplementaryData' )
				              ->addViolation();
			}
		}
	}
public function validate( $hppRequest, Constraint $constraint ) {

		foreach ( $hppRequest->getSupplementaryData() as $supplementaryData ) {
			if ( strlen( $supplementaryData ) > $this->maxLength ) {
				$this->context->buildViolation( $constraint->message )
				              ->atPath( 'supplementaryData' )
				              ->addViolation();
			}
		}
	}
Checks if the passed value is valid.

@param HppRequest $hppRequest
@param Constraint $constraint

@api