Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| Blob | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| fetch | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Wikimedia\Rdbms; |
| 4 | |
| 5 | /** |
| 6 | * @newable |
| 7 | * @stable to extend |
| 8 | */ |
| 9 | class Blob implements IBlob { |
| 10 | /** @var string */ |
| 11 | protected $data; |
| 12 | |
| 13 | /** |
| 14 | * @stable to call |
| 15 | * @param string $data |
| 16 | */ |
| 17 | public function __construct( $data ) { |
| 18 | $this->data = $data; |
| 19 | } |
| 20 | |
| 21 | /** @inheritDoc */ |
| 22 | public function fetch() { |
| 23 | return $this->data; |
| 24 | } |
| 25 | } |