public function setType($type, $divisor = 1.0, $offset = 0.0)
    {
        if (!array_key_exists($type, self::$SUPPORTED_TYPES)) {
            throw new \InvalidArgumentException('Invalid Edge Type');
        }
        $this->type = $type;
        $this->divisor = $divisor;
        $this->offset = $offset;

        return $this;
    }
public function setType($type, $divisor = 1.0, $offset = 0.0)
    {
        if (!array_key_exists($type, self::$SUPPORTED_TYPES)) {
            throw new \InvalidArgumentException('Invalid Edge Type');
        }
        $this->type = $type;
        $this->divisor = $divisor;
        $this->offset = $offset;

        return $this;
    }
public function setType ( $ type , $ divisor = 1.0 , $ offset = 0.0 ) { if ( ! array_key_exists ( $ type , self :: $ SUPPORTED_TYPES ) ) { throw new \ InvalidArgumentException ( 'Invalid Edge Type' ) ; } $ this -> type = $ type ; $ this -> divisor = $ divisor ; $ this -> offset = $ offset ; return $ this ; }
Set edge type

@param string  $type
@param integer $divisor
@param integer $offset

@return \Jaguar\Action\EdgeDetection

@throws \InvalidArgumentException
Set edge type