Releases: PhpGt/TypeSafeGetter
Tweak: getDateTime microsecond precision
Terminology change getObject() to getInstance()
For inclusion by other dependent libraries, the terminology getObject has been renamed to getInstance. This is to avoid the clash with PHP.Gt/DataObject's existing getObject() function.
getObject(), CI, and QA improvements
CallbackTypeSafeGetter
Callback interface introduced for use within php.gt/filecache.
GetClass removed until support for Generics is more mature.
Unit tests
Even though this repository's responsibility is simply getting a value with a possible type-cast, functionality has now been unit tested in order to ensure how casting works, how nullable fields are checked, and most importantly getting ready for implementing Generic class getting (tracked in issue 4).
Proxy release
This release is made to rectify a caching issue in Packagist due to a mistake pushing a previous version.
NullableTypeSafeGetter trait
This minor release introduces the NullableTypeSafeGetter trait, which removes boilerplate code found throughout PHP.Gt repositories.
NullableTypeSafeGetter implements all functions of the TypeSafeGetter trait, apart from get
, which needs to be defined by the implementing class.
Nullable DateTime
This minor release changes the signature of getDateTime
to allow nullable returns, for consistency with other getters.
v1 release
v1.0.0 Add readme