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