Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AddressBlock
  • AddressClass
  • CustomerB2BStatus
  • CustomerCallNumber
  • CustomerCity
  • CustomerCompany
  • CustomerCountryIso2
  • CustomerCountryIso3
  • CustomerCountryName
  • CustomerCountryZoneIsoCode
  • CustomerCountryZoneName
  • CustomerDateOfBirth
  • CustomerEmail
  • CustomerFirstname
  • CustomerGender
  • CustomerInputValidatorSettings
  • CustomerLastname
  • CustomerNumber
  • CustomerPassword
  • CustomerPostcode
  • CustomerServiceSettings
  • CustomerStreet
  • CustomerSuburb
  • CustomerVatNumber

Class CustomerPostcode

Value Object

Class CustomerPostcode

Represents a customer postcode

CustomerPostcode implements CustomerPostcodeInterface
Package: Customer\ValueObjects
Category: System
Implements: CustomerPostcodeInterface
Located at CoreServices/Customer/ValueObjects/CustomerPostcode.inc.php

Methods summary

public
# __construct( string $p_postcode )

Constructor for the class CustomerPostcode.

Constructor for the class CustomerPostcode.

Validates the length and the data type of the postcode.

Parameters

$p_postcode
Customer's post code.

Throws

InvalidArgumentException
If $p_postcode is not a string.
LengthException
If $p_postcode contains more characters than 10.
public string
# __toString( )

Returns the equivalent string value.

Returns the equivalent string value.

Returns

string
Equivalent string value.

Implementation of

CustomerPostcodeInterface::__toString()

Properties summary

protected string $postcode

Customer's post code.

Customer's post code.

#
API documentation generated by ApiGen