serp-spider/core

View on GitHub
src/Core/Media/Binary.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @license see LICENSE
 */

namespace Serps\Core\Media;

use Serps\Core\Media\MediaInterface;

class Binary extends AbstractMedia
{

    protected $data;

    /**
     * Binary constructor.
     * @param $data
     */
    public function __construct($data)
    {
        $this->data = $data;
    }

    public function asString()
    {
        return $this->data;
    }
}