public function setType($type)
    {
        if (!in_array($type, self::$supported)) {
            throw new \InvalidArgumentException(sprintf(
                    'Invalid LinearGradient Gradient Type ""', (string) $type
            ));
        }
        $this->type = $type;
    }
public function setType($type)
    {
        if (!in_array($type, self::$supported)) {
            throw new \InvalidArgumentException(sprintf(
                    'Invalid LinearGradient Gradient Type ""', (string) $type
            ));
        }
        $this->type = $type;
    }
public function setType ( $ type ) { if ( ! in_array ( $ type , self :: $ supported ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid LinearGradient Gradient Type ""' , ( string ) $ type ) ) ; } $ this -> type = $ type ; }
Set LinearGradient type

@param string $type

@throws \InvalidArgumentException
Set LinearGradient type