From manual page: https://php.net/class.domimplementation
How can I set the Implementation of this Document? Actually, I just want to save a property in the Document or read a property from the Document's Implementation. Ever since PHP 8.2 deprecated dynamic properties, I've been waiting for a solution. For years, I've been using hooks.