static::MAX_LENGTH) { throw new InvalidArgumentException( "Payment data \"{$paymentData}\" must be less than " . static::MAX_LENGTH . ' chars' ); } $this->paymentData = $paymentData; } /** * Return the payment data from the value object * * @return string */ public function getValue() { return $this->paymentData; } }