mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
59 lines
820 B
PHP
59 lines
820 B
PHP
<?php
|
|
|
|
namespace Gregwar\Image\Adapter;
|
|
|
|
use Gregwar\Image\Source\Source;
|
|
|
|
/**
|
|
* Base Adapter Implementation to handle Image information
|
|
*/
|
|
abstract class Adapter implements AdapterInterface
|
|
{
|
|
/**
|
|
* @var Source
|
|
*/
|
|
protected $source;
|
|
|
|
/**
|
|
* The image resource handler
|
|
*/
|
|
protected $resource;
|
|
|
|
public function __construct(){
|
|
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function setSource(Source $source)
|
|
{
|
|
$this->source = $source;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function getResource()
|
|
{
|
|
return $this->resource;
|
|
}
|
|
|
|
/**
|
|
* Does this adapter supports the given type ?
|
|
*/
|
|
protected function supports($type)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Converts the image to true color
|
|
*/
|
|
protected function convertToTrueColor()
|
|
{
|
|
}
|
|
}
|