dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Special:Newpages feed now shows first revision instead of latest revision"
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
encasing
/
Blob.php
diff --git
a/includes/libs/rdbms/encasing/Blob.php
b/includes/libs/rdbms/encasing/Blob.php
index
bd90330
..
e2d685c
100644
(file)
--- a/
includes/libs/rdbms/encasing/Blob.php
+++ b/
includes/libs/rdbms/encasing/Blob.php
@@
-1,19
+1,21
@@
<?php
<?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;
/** @var string */
protected $mData;
- function __construct( $data ) {
+ /**
+ * @param string $data
+ */
+ public function __construct( $data ) {
$this->mData = $data;
}
$this->mData = $data;
}
- function fetch() {
+
public
function fetch() {
return $this->mData;
}
}
return $this->mData;
}
}
+
+class_alias( Blob::class, 'Blob' );