SerializableProperty

class Firstred\PostNL\Attribute\SerializableProperty

Summary

Methods

Methods

public Firstred\PostNL\Attribute\SerializableProperty::__construct( $type, $isArray=false, $aliases=\[\], $supportedServices=\[\])
This indicates that the given property is serializable. All serialization details should
be passed to the attribute, making it completely serializable without relying on reflection
of the property itself.
Parameters:
  • $type (class-string | "bool" | "int" | "float" | "string") Property type

  • $isArray (bool) Should the property be an array

  • $aliases (string[]) Property shortname aliases such as Address

  • $supportedServices (class-string[]) Supported services, empty array = all

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Throws:

\Firstred\PostNL\Exception\InvalidArgumentException

Throws:

\Firstred\PostNL\Exception\InvalidConfigurationException

Since:

2.0.0