+
+ /**
+ * The JSON data is wrapped in a PHP file for security purpose.
+ * This way, even if the file is accessible, credentials and configuration won't be exposed.
+ *
+ * Note: this isn't a static field because concatenation isn't supported in field declaration before PHP 5.6.
+ *
+ * @return string PHP start tag and comment tag.
+ */
+ public static function getPhpHeaders()
+ {
+ return '<?php /*'. PHP_EOL;
+ }
+
+ /**
+ * Get PHP comment closing tags.
+ *
+ * Static method for consistency with getPhpHeaders.
+ *
+ * @return string PHP comment closing.
+ */
+ public static function getPhpSuffix()
+ {
+ return PHP_EOL . '*/ ?>';
+ }