og-soft / php-value-objects
Value objects for PHP
Installs: 817
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/og-soft/php-value-objects
Requires
- php: >=7.4
- nesbot/carbon: ^2.42.0
Requires (Dev)
- phpunit/phpunit: ^9
README
PHP Value object for storing valid data.
Examples
- check
tests
dir
TODO
- add tests
- ignored attributes
- touched attributes
- interface
- Auto-generated OpenAPI
- Auto-generated TypeScripts objects
- yaml definition of ValueObjects
- parent (possibility to get parent object)
Changelog
-
2021-02-26
- ignored attributes
- touch (
setTouched
,isTouched
,getTouchedAll
) - add interface
ValueObjectInterface
- remove trait
- min request PHP 7.4
- check null
- root element
-
2021-03-17
- added
setOriginalValue
andgetOriginalValue
methods for get original value from init
- added