1234567891011121314151617181920212223242526 |
- <?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);
- }
- }
|