src/Resource/Holder.php
public function setBirthDate($birthDate)
    {
        if ($birthDate instanceof \DateTime) {
            $birthDate = $birthDate->format('Y-m-d');
        }

        $this->data->birthDate = $birthDate;

        return $this;
    }
public function setBirthDate($birthDate)
    {
        if ($birthDate instanceof \DateTime) {
            $birthDate = $birthDate->format('Y-m-d');
        }

        $this->data->birthDate = $birthDate;

        return $this;
    }
public function setBirthDate ( $ birthDate ) { if ( $ birthDate instanceof \ DateTime ) { $ birthDate = $ birthDate -> format ( 'Y-m-d' ) ; } $ this -> data -> birthDate = $ birthDate ; return $ this ; }
Set birth date from holder.

@param \DateTime|string $birthDate Date of birth of the credit card holder.

@return $this
Set birth date from holder .