public function setType($type)
    {
        // check type
        if (!in_array($type, array(self::AUTO, self::ISBN10, self::ISBN13))) {
            /**
             * @see Zend_Validate_Exception
             */

            throw new Zend_Validate_Exception('Invalid ISBN type');
        }

        $this->_type = $type;
        return $this;
    }
public function setType($type)
    {
        // check type
        if (!in_array($type, array(self::AUTO, self::ISBN10, self::ISBN13))) {
            /**
             * @see Zend_Validate_Exception
             */

            throw new Zend_Validate_Exception('Invalid ISBN type');
        }

        $this->_type = $type;
        return $this;
    }
public function setType ( $ type ) { // check type if ( ! in_array ( $ type , array ( self :: AUTO , self :: ISBN10 , self :: ISBN13 ) ) ) { /**
             * @see Zend_Validate_Exception
             */ throw new Zend_Validate_Exception ( 'Invalid ISBN type' ) ; } $ this -> _type = $ type ; return $ this ; }
Set allowed ISBN type.

@param  string $type
@throws Zend_Validate_Exception When $type is not valid
@return Zend_Validate_Isbn Provides a fluent interface
Set allowed ISBN type .