getProperties() as $property){ $property->setAccessible(true); $properties[$property->getName()] = $property->getValue($object); } return array_merge((array) $reflection->getConstants(), $properties); }