Resource.php 330 B

123456789101112131415161718192021
  1. <?php
  2. namespace Gregwar\Image\Source;
  3. /**
  4. * Have the image directly in a specific resource.
  5. */
  6. class Resource extends Source
  7. {
  8. protected $resource;
  9. public function __construct($resource)
  10. {
  11. $this->resource = $resource;
  12. }
  13. public function getResource()
  14. {
  15. return $this->resource;
  16. }
  17. }