public function setType( $type )
    {
        if (!array_key_exists( intval( $type ), self::$paymentTypes )) {
            throw new InvalidArgumentException( sprintf( 'Invalid payment type (%s)', $type ) );
        }

        $this->type = $type;

        return $this;
    }
public function setType( $type )
    {
        if (!array_key_exists( intval( $type ), self::$paymentTypes )) {
            throw new InvalidArgumentException( sprintf( 'Invalid payment type (%s)', $type ) );
        }

        $this->type = $type;

        return $this;
    }
@param  int $type

@return $this