You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
428 B

  1. <?php
  2. namespace dimti\Image;
  3. class ImageVariant extends File
  4. {
  5. public $width;
  6. public $height;
  7. public $type;
  8. public $size;
  9. /**
  10. * @param $class string|StdClass
  11. * @return mixed
  12. */
  13. public static function getIsClass($class)
  14. {
  15. if (is_object($class)) {
  16. return (get_class($class) == __CLASS__);
  17. } else {
  18. return ($class == __CLASS__);
  19. }
  20. }
  21. }