mirror of
				https://github.com/pierre42100/comunic
				synced 2025-11-04 12:14:10 +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;
 | 
						|
    }
 | 
						|
}
 |