<?php
-/**
- * Utility class
- * @ingroup Database
- *
- * This allows us to distinguish a blob from a normal string and an array of strings
- */
-class Blob {
+
+namespace Wikimedia\Rdbms;
+
+class Blob implements IBlob {
/** @var string */
protected $mData;
- function __construct( $data ) {
+ /**
+ * @param $data string
+ */
+ public function __construct( $data ) {
$this->mData = $data;
}
- function fetch() {
+ public function fetch() {
return $this->mData;
}
}
+
+class_alias( Blob::class, 'Blob' );