AbstractEntity
- class Firstred\PostNL\Entity\AbstractEntity
- Implements:
JsonSerializable
Summary
Methods
Properties
- protected static property Firstred\PostNL\Entity\AbstractEntity::$id
- Type:
string
- protected static property Firstred\PostNL\Entity\AbstractEntity::$currentService
- Type:
class-string
Methods
- public Firstred\PostNL\Entity\AbstractEntity::__construct()
- public static Firstred\PostNL\Entity\AbstractEntity::create( $properties=\[\])
- Create an instance of this class without touching the constructor.
- Parameters:
$properties (array)
- Returns:
- Since:
1.0.0
- Deprecated:
2.0.0 Use the constructor instead with named arguments
- public Firstred\PostNL\Entity\AbstractEntity::getId()
- Returns:
string
- public Firstred\PostNL\Entity\AbstractEntity::setId(string|int $id)
- Parameters:
$id (string | int)
- Returns:
static
- public Firstred\PostNL\Entity\AbstractEntity::setCurrentService($currentService)
- Parameters:
$currentService (
class-string)
- Returns:
static
- Throws:
- Throws:
- Throws:
- Throws:
- public Firstred\PostNL\Entity\AbstractEntity::getCurrentService()
- Returns:
class-string
- public Firstred\PostNL\Entity\AbstractEntity::getSerializableProperties($withAliases=false)
- Returns:
array- Since:
2.0.0
- public Firstred\PostNL\Entity\AbstractEntity::jsonSerialize()
- Return a serializable array for `json_encode`.
- Returns:
array
- Throws:
- public static Firstred\PostNL\Entity\AbstractEntity::jsonDeserialize($json)
- Parameters:
$json (
stdClass) {“EntityName”: object}
- Returns:
static
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Throws:
- Since:
1.0.0