public function setType($type)
    {
        if (!array_key_exists($type, self::$Supported)) {
            throw new \InvalidArgumentException(sprintf(
                    'Invalid Sharpen Type "%s"', $type
            ));
        }
        $this->type = $type;
    }
public function setType($type)
    {
        if (!array_key_exists($type, self::$Supported)) {
            throw new \InvalidArgumentException(sprintf(
                    'Invalid Sharpen Type "%s"', $type
            ));
        }
        $this->type = $type;
    }
public function setType ( $ type ) { if ( ! array_key_exists ( $ type , self :: $ Supported ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid Sharpen Type "%s"' , $ type ) ) ; } $ this -> type = $ type ; }
Set sharpen type

@param string $type

@throws \InvalidArgumentException
Set sharpen type