src/ClearSaleID/Entity/Request/AbstractCustomer.php
public function setLegalDocument1( $legalDocument1 )
    {
        $legalDocument1 = preg_replace( '/\D/', '', $legalDocument1 );

        if (empty( $legalDocument1 )) {
            throw new InvalidArgumentException( 'LegalDocument1 is empty!' );
        }

        $this->legalDocument1 = $legalDocument1;

        return $this;
    }
public function setLegalDocument1( $legalDocument1 )
    {
        $legalDocument1 = preg_replace( '/\D/', '', $legalDocument1 );

        if (empty( $legalDocument1 )) {
            throw new InvalidArgumentException( 'LegalDocument1 is empty!' );
        }

        $this->legalDocument1 = $legalDocument1;

        return $this;
    }
@param  string $legalDocument1

@return $this
@throws \InvalidArgumentException