MediaWiki  master
Blob.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Wikimedia\Rdbms;
4 
5 class 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 
24 class_alias( Blob::class, 'Blob' );
__construct( $data)
Definition: Blob.php:12
string $data
Definition: Blob.php:7
Wrapper allowing us to distinguish a blob from a normal string and an array of strings.
Definition: IBlob.php:9