public function setKeytype($keytype)
    {
        if (in_array($keytype, $this->allowedKeytypes) === false) {
            throw new Doozr_Form_Service_Exception(
                'Passed keytype: "'.$keytype.'" is not allowed or invalid.'
            );
        }

        $this->setAttribute('keytype', $keytype);
    }
public function setKeytype($keytype)
    {
        if (in_array($keytype, $this->allowedKeytypes) === false) {
            throw new Doozr_Form_Service_Exception(
                'Passed keytype: "'.$keytype.'" is not allowed or invalid.'
            );
        }

        $this->setAttribute('keytype', $keytype);
    }
public function setKeytype ( $ keytype ) { if ( in_array ( $ keytype , $ this -> allowedKeytypes ) === false ) { throw new Doozr_Form_Service_Exception ( 'Passed keytype: "' . $ keytype . '" is not allowed or invalid.' ) ; } $ this -> setAttribute ( 'keytype' , $ keytype ) ; }
Setter for keytype.

@param string $keytype The keytype

@author Benjamin Carl <opensource@clickalicious.de>

@throws Doozr_Form_Service_Exception
Setter for keytype .