ZEROSPAM\Framework\SDK\Utils\Reflection\ReflectionUtil
Class ReflectionUtil
Helper for gathering all the properties of an object
Synopsis
- // methods
- private void __construct()
- public static array objToSnakeArray()
- private static array|float|int|null|string transformValue()
- public static array getAllProperties()
- public static void populateResponseData()
Methods
private
- __construct()
- transformValue() — Transform the value.
public
- getAllProperties() — Get all the properties not blacklisted.
- objToSnakeArray() — Take an object and return an array using all it's properties.
- populateResponseData() — Populate the response data into a dataObject that have the corresponding setters.
History
-
2018-11-07T16:53:28+00:00 (commit #80a6915)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
fix(EmptyRequest): Don't have a body for GET requests Don't serialize STATIC properties of requests.
-
2018-09-26T17:10:20+00:00 (commit #59a76f4)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
fix(Reflection): Use the interface instead of object in signature
-
2018-09-26T16:13:39+00:00 (commit #6c64d6d)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Reflection): Take a response and populate data object Useful when having to juggle between the a response and another request
-
2018-07-16T14:26:38+00:00 (commit #290a97d)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Response): Split Ratelimited from BaseResponse New type of response can now be easily build.