Package containing the interfaces and abstract implementations to support the usage of Value objects in packages and projects.
Package containing the interfaces and abstract implementations to support the usage of Value objects in other packages and projects.
This package contains the following interfaces:
ValueInterface: the basic interface for all value objects.
ValueFromArrayInterface: extra interface that adds, to a value object, the static method to create it from an array of data.
ValueToArrayInterface: extra interface that adds, to a value object, the method to extract its data as an array.
CollectonInterface: the basic interface for a collection of values of the same type.
And the following abstract implementations:
ValueAbstract: Abstract implementation of the
ValueInterface, implements only the
CollectionAbstract: Abstract implementation of the
CollectonInterface, implements the method to compare two collections (
sameValueAs()) and to get the collection as an iterator (
Install the package:
composer require digipolisgent/value
Please see CHANGELOG for more information what has changed recently.
Run the test suite:
The MIT License (MIT). Please see License File for more information.