faker = (Factory::create('en_EN')); } /** * @throws ReflectionException */ public function getClassProperty( mixed $classObject, string $propertyName ): ReflectionProperty { $reflector = new ReflectionClass($classObject); $property = $reflector->getProperty($propertyName); $property->setAccessible(true); return $property; } }