public static function getAllProperties($object, bool $asString = true) {
        $validObject = ClassUtil::isValidObject($object);
        if (!$validObject) {
            return null;
        }
        $reflectionClass = new \ReflectionClass($object);
        $properties = $reflectionClass->getProperties();

        if ($asString) {
            return ArrayUtil::arrayToString($properties);
        } else {
            return $properties;
        }
    }