src/ClearSaleID/Entity/Request/Address.php
public static function create( $street, $number, $county, $country, $city, $state, $zipCode, $complement = '' )
    {
        $instance = new self;

        $instance->setStreet( $street );
        $instance->setNumber( $number );
        $instance->setCounty( $county );
        $instance->setCountry( $country );
        $instance->setCity( $city );
        $instance->setState( $state );
        $instance->setZipCode( $zipCode );

        if (!empty( $complement )) {
            $instance->setComplement( $complement );
        }

        return $instance;
    }
public static function create( $street, $number, $county, $country, $city, $state, $zipCode, $complement = '' )
    {
        $instance = new self;

        $instance->setStreet( $street );
        $instance->setNumber( $number );
        $instance->setCounty( $county );
        $instance->setCountry( $country );
        $instance->setCity( $city );
        $instance->setState( $state );
        $instance->setZipCode( $zipCode );

        if (!empty( $complement )) {
            $instance->setComplement( $complement );
        }

        return $instance;
    }
public static function create ( $ street , $ number , $ county , $ country , $ city , $ state , $ zipCode , $ complement = '' ) { $ instance = new self ; $ instance -> setStreet ( $ street ) ; $ instance -> setNumber ( $ number ) ; $ instance -> setCounty ( $ county ) ; $ instance -> setCountry ( $ country ) ; $ instance -> setCity ( $ city ) ; $ instance -> setState ( $ state ) ; $ instance -> setZipCode ( $ zipCode ) ; if ( ! empty ( $ complement ) ) { $ instance -> setComplement ( $ complement ) ; } return $ instance ; }
@param  string $street
@param  string $number
@param  string $county
@param  string $country
@param  string $city
@param  string $state
@param  string $zipCode
@param  string $complement

@return \RodrigoPedra\ClearSaleID\Entity\Request\Address
@param string $street @param string $number @param string $county @param string $country @param string $city @param string $state @param string $zipCode @param string $complement