public function addType($type)
    {
        if (is_string($type)) {
            $type = array($type);
        }

        foreach($type as $typ) {
            if (defined('self::' . strtoupper($typ)) && !in_array($typ, $this->_type)) {
                $this->_type[] = $typ;
            }

            if (($typ == self::ALL)) {
                $this->_type = array_keys($this->_cardLength);
            }
        }

        return $this;
    }
public function addType($type)
    {
        if (is_string($type)) {
            $type = array($type);
        }

        foreach($type as $typ) {
            if (defined('self::' . strtoupper($typ)) && !in_array($typ, $this->_type)) {
                $this->_type[] = $typ;
            }

            if (($typ == self::ALL)) {
                $this->_type = array_keys($this->_cardLength);
            }
        }

        return $this;
    }
public function addType ( $ type ) { if ( is_string ( $ type ) ) { $ type = array ( $ type ) ; } foreach ( $ type as $ typ ) { if ( defined ( 'self::' . strtoupper ( $ typ ) ) && ! in_array ( $ typ , $ this -> _type ) ) { $ this -> _type [ ] = $ typ ; } if ( ( $ typ == self :: ALL ) ) { $ this -> _type = array_keys ( $ this -> _cardLength ) ; } } return $ this ; }
Adds a CCI to be accepted by validation

@param string|array $type Type to allow for validation
@return Zend_Validate_CreditCard Provides a fluid interface
Adds a CCI to be accepted by validation