src/klarnaaddr.php
public function setZipCode($zip)
    {

        if (!is_string($zip)) {
            $zip = strval($zip);
        }

        $zip = str_replace(' ', '', $zip); //remove spaces

        $this->zip = $zip;
    }
public function setZipCode($zip)
    {

        if (!is_string($zip)) {
            $zip = strval($zip);
        }

        $zip = str_replace(' ', '', $zip); //remove spaces

        $this->zip = $zip;
    }
public function setZipCode ( $ zip ) { if ( ! is_string ( $ zip ) ) { $ zip = strval ( $ zip ) ; } $ zip = str_replace ( ' ' , '' , $ zip ) ; //remove spaces $ this -> zip = $ zip ; }
Sets the zip code.

@param string $zip zip code

@return void
Sets the zip code .