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.

21 lines
405 B

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