<commit_before><?php

namespace PlentyConnector\Payment\Sepa\Validator;

use Assert\Assertion;
use PlentyConnector\Connector\Validator\ValidatorInterface;
use PlentyConnector\Payment\Sepa\PaymentData\SepaPaymentData;

/**
 * Class SepaPaymentDataValidator
 */
class SepaPaymentDataValidator implements ValidatorInterface
{
    /**
     * {@inheritdoc}
     */
    public function supports($object)
    {
        return $object instanceof SepaPaymentData;
    }

    /**
     * @param SepaPaymentData $object
     */
    public function validate($object)
    {
        Assertion::string($object->getAccountOwner(), null, 'paymentData.accountOwner');
        Assertion::notBlank($object->getAccountOwner(), null, 'paymentData.accountOwner');
        Assertion::string($object->getIban(), null, 'paymentData.iban');
        Assertion::notBlank($object->getIban(), null, 'paymentData.iban');
        Assertion::nullOrString($object->getBic(), null, 'paymentData.bic');
    }
}
<commit_msg>update validator names<commit_after><?php

namespace PlentyConnector\Payment\Sepa\Validator;

use Assert\Assertion;
use PlentyConnector\Connector\Validator\ValidatorInterface;
use PlentyConnector\Payment\Sepa\PaymentData\SepaPaymentData;

/**
 * Class SepaPaymentDataValidator
 */
class SepaPaymentDataValidator implements ValidatorInterface
{
    /**
     * {@inheritdoc}
     */
    public function supports($object)
    {
        return $object instanceof SepaPaymentData;
    }

    /**
     * @param SepaPaymentData $object
     */
    public function validate($object)
    {
        Assertion::string($object->getAccountOwner(), null, 'payment.sepa.accountOwner');
        Assertion::notBlank($object->getAccountOwner(), null, 'payment.sepa.accountOwner');
        Assertion::string($object->getIban(), null, 'payment.sepa.iban');
        Assertion::notBlank($object->getIban(), null, 'payment.sepa.iban');
        Assertion::nullOrString($object->getBic(), null, 'payment.sepa.bic');
    }
}

{'fraction_non_alphanumeric': 0.13558467741935484, 'fraction_numerical': 0.0, 'mean_word_length': 4.063775510204081, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '409755', 'n_tokens_mistral': 570, 'n_tokens_neox': 571, 'n_words': 90}