src/ClearSaleID/Entity/Request/CustomerShippingData.php
public static function create(
        $id,
        $type,
        $legalDocument,
        $name,
        Address $address,
        $phone,
        DateTime $birthDate = null
    ) {
        $instance = new self;

        $instance->setId( $id );
        $instance->setType( $type );
        $instance->setLegalDocument1( $legalDocument );
        $instance->setName( $name );
        $instance->setAddress( $address );
        $instance->addPhone( $phone );

        if (!empty( $birthDate )) {
            $instance->setBirthDate( $birthDate );
        }

        return $instance;
    }
public static function create(
        $id,
        $type,
        $legalDocument,
        $name,
        Address $address,
        $phone,
        DateTime $birthDate = null
    ) {
        $instance = new self;

        $instance->setId( $id );
        $instance->setType( $type );
        $instance->setLegalDocument1( $legalDocument );
        $instance->setName( $name );
        $instance->setAddress( $address );
        $instance->addPhone( $phone );

        if (!empty( $birthDate )) {
            $instance->setBirthDate( $birthDate );
        }

        return $instance;
    }
@param  string                                           $id
@param  string                                           $type
@param  string                                           $legalDocument
@param  string                                           $name
@param  \RodrigoPedra\ClearSaleID\Entity\Request\Address $address
@param  \RodrigoPedra\ClearSaleID\Entity\Request\Phone   $phone
@param  \DateTime|null                                   $birthDate

@return \RodrigoPedra\ClearSaleID\Entity\Request\CustomerShippingData