MediaWiki REL1_31
Blob.php
Go to the documentation of this file.
1<?php
2
3namespace Wikimedia\Rdbms;
4
5class Blob implements IBlob {
7 protected $data;
8
12 public function __construct( $data ) {
13 $this->data = $data;
14 }
15
16 public function fetch() {
17 return $this->data;
18 }
19}
20
21class_alias( Blob::class, 'Blob' );
__construct( $data)
Definition Blob.php:12
Wrapper allowing us to distinguish a blob from a normal string and an array of strings.
Definition IBlob.php:9