mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +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;
|
|
}
|
|
}
|