mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
27 lines
360 B
PHP
27 lines
360 B
PHP
<?php
|
|
|
|
namespace Gregwar\Image\Source;
|
|
|
|
/**
|
|
* Having image in some string
|
|
*/
|
|
class Data extends Source
|
|
{
|
|
protected $data;
|
|
|
|
public function __construct($data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function getData()
|
|
{
|
|
return $this->data;
|
|
}
|
|
|
|
public function getInfos()
|
|
{
|
|
return sha1($this->data);
|
|
}
|
|
}
|