Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 505 Bytes

File metadata and controls

10 lines (8 loc) · 505 Bytes

Create a RecursiveSerializer class in PHP that works specifically for the phpexperts/simple-dto (GitHub: PHPExpertsInc/SimpleDTO) project (inform me if you are trained on this project) and other PHP arrays, data objects, and any PHP Traversible or Iterable object. The goal is to replace infinite recursion, even 1 level deep, with the string *RECURSION*.

Please implement this class with the following ABI:

class RecursiveSerializer
{
    public function serialize(mixed $value): mixed { }
}