ZEROSPAM\Framework\SDK\Utils\Data\ArrayableData
Class ArrayableData
Data to be used in Request. Will be transform into an array
By default use all the available properties to do so.
Synopsis
class ArrayableData
implements
DataObject,WithNullableFields
{
- // members
- protected array $renamed = ;
- // methods
- public static ArrayableData fromResponse()
- protected static array blacklist()
- public array toArray()
- // Inherited methods from HasNullableFields
- public bool isNullable()
- public bool isValueChanged()
- protected void nullableChanged()
Hierarchy
Uses
Implements
Members
protected
- $renamed — array
Methods
protected
- blacklist() — Properties to not serialize into array
public
- fromResponse() — Create the data from the response
- toArray() — Return the object as Array.
Inherited from ZEROSPAM\Framework\SDK\Request\Api\HasNullableFields
protected
- nullableChanged() — Trigger the fact the nullable changed
public
- isNullable() — Is the given field nullable
- isValueChanged() — Check if the given field is nullable and if it should be included in the request
History
-
2018-09-26T17:41:17+00:00 (commit #bd1cab9)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
fix(ArrayableData): Can't have it return self PHP is a shitty language when you need to work with "generic". Self = always Arrayable in this case, no way to set static, and no support for generic. This is shitty.
-
2018-09-26T17:18:36+00:00 (commit #6fb8758)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(DataObject): Adds dataObject Specific object that contains data needed to be nested in the request.