mirror of
https://github.com/pierre42100/comunic
synced 2025-02-07 10:07:11 +00:00
22 lines
329 B
PHP
22 lines
329 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace Gregwar\Image\Source;
|
||
|
|
||
|
/**
|
||
|
* Have the image directly in a specific resource
|
||
|
*/
|
||
|
class Resource extends Source
|
||
|
{
|
||
|
protected $resource;
|
||
|
|
||
|
public function __construct($resource)
|
||
|
{
|
||
|
$this->resource = $resource;
|
||
|
}
|
||
|
|
||
|
public function getResource()
|
||
|
{
|
||
|
return $this->resource;
|
||
|
}
|
||
|
}
|