original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Adds a CCI to be accepted by validation