Sets a new postal code.

@param string $postal New postal code
973198
public function setPostal($postal)
	{
		if ( $postal == $this->getPostal() ) { return; }

		$this->_values['postal'] = (string) $postal;
		$this->setModified();
	}
188225
public function setEnvelope($data)
    {
        $this->_data[Horde_Imap_Client::FETCH_ENVELOPE] = is_array($data)
            ? new Horde_Imap_Client_Data_Envelope($data)
            : $data;
    }
579708
public function setShippingType($type)
    {
        $param = $type;
        if ($this->shipping == null) {
            $this->shipping = new PagSeguroShipping();
        }
        if ($param instanceof PagSeguroShippingType) {
            $this->shipping->setType($param);
        } else {
            $this->shipping->setType(new PagSeguroShippingType($param));
        }
    }
18929
function setSenderText( $text )
    {
        $this->extractEmail( $text, $email, $name );
        $this->Mail->from = new ezcMailAddress( $email, $name, $this->usedCharset() );
        $this->From = array( 'name' => $name,
                             'email' => $email );
    }
109384
public function setStp($stp) {

        $this->checkInArray($stp, GDAXConstants::$stpValues);
        $this->stp = $stp;
        return $this;

    }
661687
@Override
  public final void initialize(final PostalCode pconstraintAnnotation) {
    message = pconstraintAnnotation.message();
    fieldCountryCode = pconstraintAnnotation.fieldCountryCode();
    allowLowerCaseCountryCode = pconstraintAnnotation.allowLowerCaseCountryCode();
    fieldPostalCode = pconstraintAnnotation.fieldPostalCode();
  }
894081
function setCcElements( $newCc )
    {
        $this->Mail->cc = array();
        foreach ( $newCc as $address )
        {
            $name = isset( $address['name'] ) ? $address['name'] : false;
            $this->Mail->addCc( new ezcMailAddress( $address['email'], $name, $this->usedCharset() ) );
        }
        $this->CcElements = $newCc;
    }
290888
public function setDelivery($delivery)
    {
        while (is_array($delivery) && list($key, $val) = each($delivery)) {
            $$key = $val;
            switch ($key) {
                case 'deliveryCity':
                    if (is_string($this->destinationCity) && empty($this->destinationCity)) {
                        $this->delivery[$key] = $val;
                    } else {
                        $this->delivery[$key] = $this->destinationCity;
                    }
                    break;

                case 'deliveryState':
                    if (is_string($this->destinationState) && empty($this->destinationState)) {
                        $this->delivery[$key] = $val;
                    } else {
                        $this->delivery[$key] = $this->destinationState;
                    }
                    break;

                case 'deliveryCountryCode':
                    if ($this->destinationCountry === 0) {
                        $this->delivery[$key] = $val;
                    } else {
                        $this->delivery[$key] = $this->destinationCountry;
                    }
                    break;

                default:
                    $this->delivery[$key] = $val;
            }
        }
        $this->deliverySet = true;
    }
546057
public function setPostcodeInward($part)
    {
        $part = strtoupper(trim($part));

        if (preg_match('/^'.self::RxInward.'$/', $part)) {
            $this->postcodeInward = $part;
        } else {
            $this->postcodeInward = null;
        }

        return $this;
    }
825810
public function setCharset($charset)
    {
        parent::setCharset($charset);
        if (isset($this->paramEncoder)) {
            $this->paramEncoder->charsetChanged($charset);
        }
    }
272007
public function setAddress1($address1)
	{
		if ( $address1 == $this->getAddress1() ) { return; }

		$this->_values['address1'] = (string) $address1;
		$this->setModified();
	}
200144
public function setCreatedAt($createdAt)
    {
        if ($createdAt instanceof \DateTime
            || (is_object($createdAt) && method_exists($createdAt, 'format'))) {
            $this->createdAt = $createdAt->format('Y-m-d H:i:s');
        } else {
            $this->createdAt = $createdAt;
        }
    }
739033
public function setPackage($package)
    {
        if ($package === $this->package) {
            return;
        }

        $this->package = $package;
        $this->packageOverridden = false;
    }
1036974
public function setStreet($street)
    {
        if (!is_string($street)) {
            $street = strval($street);
        }

        $this->street = $street;
    }
460547
protected function setError($msg)
    {
        $this->error_count++;
        if ($this->Mailer == 'smtp' and !is_null($this->smtp)) {
            $lasterror = $this->smtp->getError();
            if (!empty($lasterror) and array_key_exists('smtp_msg', $lasterror)) {
                $msg .= '<p>' . $this->lang('smtp_error') . $lasterror['smtp_msg'] . "</p>\n";
            }
        }
        $this->ErrorInfo = $msg;
    }
777258
@Programmatic
    public PostalAddress newPostal(
            final Object owner,
            final String addressLine1,
            final String addressLine2,
            final String addressLine3,
            final String addressLine4,
            final String postalCode,
            final String country,
            final String purpose,
            final String notes) {

        final PostalAddress pa = factoryService.instantiate(PostalAddress.class);
        pa.setType(CommunicationChannelType.POSTAL_ADDRESS);
        owner(pa).setOwner(owner);
        pa.setPurpose(purpose);
        pa.setAddressLine1(addressLine1);
        pa.setAddressLine2(addressLine2);
        pa.setAddressLine3(addressLine3);
        pa.setAddressLine4(addressLine4);
        pa.setPostalCode(postalCode);
        pa.setNotes(notes);
        pa.setCountry(country);

        repositoryService.persist(pa);
        return pa;
    }
50164
public function setIsNew($value)
    {
        $value = ($value == true) ? 1 : 0;

        if ($this->data['is_new'] === $value) {
            return;
        }

        $this->data['is_new'] = $value;

        $this->_setModified('is_new');
    }