szemul / not-set-value
Simple package to represent a value that has not been set
2.0.0
2022-01-16 03:28 UTC
Requires
- php: ^8.0
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0.0
- phpstan/phpstan: ^1.4.0
README
This class/interface is useful in case for example in objects representing API requests, where a null value means something different from when a value is not sent. For example a null value can mean that something should be set to null, while a not sent value means the consumer does not want to change the current value.