getClass() public static method

Returns an instance of the requested image type
public static getClass ( string $type ) : Type
$type string Image type
return Screen\Image\Types\Type
Example #1
0
 /**
  * Sets the image type
  *
  * @param string $type 'jpg', 'png', etc...
  *
  * @return Capture
  */
 public function setImageType($type)
 {
     $this->imageType = Types::getClass($type);
     return $this;
 }