Nestpay/Request.php
public function cardType(Int $type)
    {
        if( ! isset($this->cardTypes[$type]) )
        {
            throw new Exception\InvalidCardTypeException(NULL, $type);
        }

        $this->settings['cardType'] = $type;

        return $this;
    }
public function cardType(Int $type)
    {
        if( ! isset($this->cardTypes[$type]) )
        {
            throw new Exception\InvalidCardTypeException(NULL, $type);
        }

        $this->settings['cardType'] = $type;

        return $this;
    }
public function cardType ( Int $ type ) { if ( ! isset ( $ this -> cardTypes [ $ type ] ) ) { throw new Exception \ InvalidCardTypeException ( NULL , $ type ) ; } $ this -> settings [ 'cardType' ] = $ type ; return $ this ; }
Sets card type.

@param int $type

@return $this
Sets card type .