aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/rdbms/encasing/Blob.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/libs/rdbms/encasing/Blob.php')
-rw-r--r--includes/libs/rdbms/encasing/Blob.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/libs/rdbms/encasing/Blob.php b/includes/libs/rdbms/encasing/Blob.php
new file mode 100644
index 000000000000..bd9033057789
--- /dev/null
+++ b/includes/libs/rdbms/encasing/Blob.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Utility class
+ * @ingroup Database
+ *
+ * This allows us to distinguish a blob from a normal string and an array of strings
+ */
+class Blob {
+ /** @var string */
+ protected $mData;
+
+ function __construct( $data ) {
+ $this->mData = $data;
+ }
+
+ function fetch() {
+ return $this->mData;
+ }
+}