Blob.php 330 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Wikimedia\Rdbms;
  3. class Blob implements IBlob {
  4. /** @var string */
  5. protected $data;
  6. /**
  7. * @param string $data
  8. */
  9. public function __construct( $data ) {
  10. $this->data = $data;
  11. }
  12. public function fetch() {
  13. return $this->data;
  14. }
  15. }
  16. /**
  17. * @deprecated since 1.29
  18. */
  19. class_alias( Blob::class, 'Blob' );