in the future, this component should offer different value objects to the other micro services. So far, it only offers date, time and uuid.
<?php
echo fluxValueObject\getNewUuid().PHP_EOL;
echo fluxValueObject\getCurrentTime().PHP_EOL;
output
a6431a6c-250b-4051-aa01-2d4d31387be9
2022-04-04 20:01:03.000000
<?php
echo Api::new()->createUuid()->getValue().PHP_EOL;
echo Api::new()->createCurrentTime()->getValue().PHP_EOL.PHP_EOL;;
Api::new()->createUuid()->equals('abc31a6c-250b-4051-aa01-2d4d31387def').PHP_EOL;
Api::new()->createCurrentTime()->equals('2022-04-04 20:01:03.000000').PHP_EOL;
output
a6431a6c-250b-4051-aa01-2d4d31387be9
2022-04-04 20:01:03.000000
false
true
Please ...
- ... register an account at https://git.fluxlabs.ch
- ... create pull requests 🔥
Please ...
- ... register an account at https://git.fluxlabs.ch
- ... ask us for a Service Level Agreement: support@fluxlabs.ch 😘
- ... read and create issues