src/Address/Address.php
protected function setPostcode(string $postcode): void
    {
        if (! preg_match(self::POSTCODE_FORMAT, $postcode)) {
            throw new InvalidArgumentException('Postcode must match the expected format: ' . self::POSTCODE_FORMAT);
        }

        $this->postcode = $postcode;
    }
protected function setPostcode(string $postcode): void
    {
        if (! preg_match(self::POSTCODE_FORMAT, $postcode)) {
            throw new InvalidArgumentException('Postcode must match the expected format: ' . self::POSTCODE_FORMAT);
        }

        $this->postcode = $postcode;
    }
protected function setPostcode ( string $ postcode ) : void { if ( ! preg_match ( self :: POSTCODE_FORMAT , $ postcode ) ) { throw new InvalidArgumentException ( 'Postcode must match the expected format: ' . self :: POSTCODE_FORMAT ) ; } $ this -> postcode = $ postcode ; }
Set postcode.

@param  string $postcode
@return void
Set postcode .