public static function writeObject($filePath, $object, $compareContents = false)
    {
        $content = '<?php return ' . var_export($object, true) . ';';
        return self::write($filePath, $content, $compareContents);
    }