<commit_before><?php

namespace Ixopay\Client\Data;

/**
 * Class IbanCustomer
 *
 * @package Ixopay\Client\Data
 */
class IbanCustomer extends Customer {

    /**
     * @var string
     */
    protected $iban;

    /**
     * @var string
     */
    protected $bic;

    /**
     * @var string
     */
    protected $mandateId;

    /**
     * @var \DateTime
     */
    protected $mandateDate;

    /**
     * @return string
     */
    public function getIban() {
        return $this->iban;
    }

    /**
     * @param string $iban
     *
     * @return $this
     */
    public function setIban($iban) {
        $this->iban = $iban;
        return $this;
    }

    /**
     * @return string
     */
    public function getBic() {
        return $this->bic;
    }

    /**
     * @param string $bic
     *
     * @return $this
     */
    public function setBic($bic) {
        $this->bic = $bic;
        return $this;
    }

    /**
     * @return string
     */
    public function getMandateId() {
        return $this->mandateId;
    }

    /**
     * @param string $mandateId
     */
    public function setMandateId($mandateId) {
        $this->mandateId = $mandateId;
    }

    /**
     * @return \DateTime
     */
    public function getMandateDate() {
        return $this->mandateDate;
    }

    /**
     * @param \DateTime $mandateDate
     */
    public function setMandateDate($mandateDate) {
        $this->mandateDate = $mandateDate;<commit_msg>create DateTime for string mandate date<commit_after><?php

namespace Ixopay\Client\Data;


use Ixopay\Client\Exception\InvalidValueException;

/**
 * Class IbanCustomer
 *
 * @package Ixopay\Client\Data
 */
class IbanCustomer extends Customer {

    /**
     * @var string
     */
    protected $iban;

    /**
     * @var string
     */
    protected $bic;

    /**
     * @var string
     */
    protected $mandateId;

    /**
     * @var \DateTime
     */
    protected $mandateDate;

    /**
     * @return string
     */
    public function getIban() {
        return $this->iban;
    }

    /**
     * @param string $iban
     *
     * @return $this
     */
    public function setIban($iban) {
        $this->iban = $iban;
        return $this;
    }

    /**
     * @return string
     */
    public function getBic() {
        return $this->bic;
    }

    /**
     * @param string $bic
     *
     * @return $this
     */
    public function setBic($bic) {
        $this->bic = $bic;
        return $this;
    }

    /**
     * @return string
     */
    public function getMandateId() {
        return $this->mandateId;
    }

    /**
     * @param string $mandateId
     */
    public function setMandateId($mandateId) {
        $this->mandateId = $mandateId;
    }

    /**
     * @return \DateTime
     */
    public function getMandateDate() {
        return $this->mandateDate;
    }

    /**
     * @param \DateTime $mandateDate
     *
     * @throws InvalidValueException
     */
    public function setMandateDate($mandateDate) {
        if (\is_string($mandateDate)) {
            $mandateDate = \DateTime::createFromFormat('Y-m-d', $mandateDate);

            if ($mandateDate === false) {
                throw new InvalidValueException('$mandateDate has to have the format Y-m-d');
            }
        }

        $this->mandateDate = $mandateDate;
{'fraction_non_alphanumeric': 0.13674446439257928, 'fraction_numerical': 0.0, 'mean_word_length': 1.6744, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '5292941', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1051, 'n_words': 215}