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' );
Wikimedia\Rdbms\Blob\fetch
fetch()
Definition: Blob.php:21
Wikimedia\Rdbms\IBlob
Wrapper allowing us to distinguish a blob from a normal string and an array of strings.
Definition: IBlob.php:9
Wikimedia\Rdbms\Blob\__construct
__construct( $data)
Definition: Blob.php:17
Wikimedia\Rdbms
Definition: ChronologyProtector.php:24
Wikimedia\Rdbms\Blob\$data
string $data
Definition: Blob.php:11
Wikimedia\Rdbms\Blob
@newable
Definition: Blob.php:9