public function setImageType($image_type)
    {
        if (in_array($image_type, $this->image_types_available)) {
            $this->image_type = $image_type;
        }

        return $this;
    }
public function setImageType($image_type)
    {
        if (in_array($image_type, $this->image_types_available)) {
            $this->image_type = $image_type;
        }

        return $this;
    }
public function setImageType ( $ image_type ) { if ( in_array ( $ image_type , $ this -> image_types_available ) ) { $ this -> image_type = $ image_type ; } return $ this ; }
Set image type for rendering.

@param string $image_type Image type

@return QrCode
Set image type for rendering .