22 lines
		
	
	
		
			330 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			330 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;
 | |
|     }
 | |
| }
 |