I would like to know if there is any way to add a method or property to a SplFileInfo class in order to extend its functionality.
SplFileInfo
https://www.php.net/man