3 declare(strict_types=1);
5 namespace CuyZ\Valinor\Mapper\Object\Factory;
7 use CuyZ\Valinor\Definition\ClassDefinition;
8 use CuyZ\Valinor\Mapper\Object\ReflectionObjectBuilder;
10 use function enum_exists;
13 final class ReflectionObjectBuilderFactory implements ObjectBuilderFactory
15 public function for(ClassDefinition $class): array
17 if (enum_exists($class->name())) {
21 return [new ReflectionObjectBuilder($class)];