otphp
otphp copied to clipboard
Add migration API for `readonly` classes
This PR adds all the API necessary to migrate to readonly classes in the next major version.
Note that the use of clone keyword will not be necessary (actually not even allowed) in the next major: all the attributes will be passed in the constructors.
Supersedes https://github.com/Spomky-Labs/otphp/pull/205