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