Correct for use Majestic namespace
This commit is contained in:
23
ImageVariant.php
Normal file
23
ImageVariant.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace dimti\Image;
|
||||
|
||||
class ImageVariant extends File
|
||||
{
|
||||
public $width;
|
||||
public $height;
|
||||
public $type;
|
||||
public $size;
|
||||
|
||||
/**
|
||||
* @param $class string|\StdClass
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getIsClass($class)
|
||||
{
|
||||
if (is_object($class)) {
|
||||
return (get_class($class) == __CLASS__);
|
||||
} else {
|
||||
return ($class == __CLASS__);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user