public function setSignatureMethod($signatureMethod)
    {
        if (!is_object($signatureMethod) && !is_array($signatureMethod)) {
            throw new InvalidParamException('"' . get_class($this) . '::signatureMethod" should be instance of "\yii\autclient\signature\BaseMethod" or its array configuration. "' . gettype($signatureMethod) . '" has been given.');
        }
        $this->_signatureMethod = $signatureMethod;
    }
public function setSignatureMethod($signatureMethod)
    {
        if (!is_object($signatureMethod) && !is_array($signatureMethod)) {
            throw new InvalidParamException('"' . get_class($this) . '::signatureMethod" should be instance of "\yii\autclient\signature\BaseMethod" or its array configuration. "' . gettype($signatureMethod) . '" has been given.');
        }
        $this->_signatureMethod = $signatureMethod;
    }
public function setSignatureMethod ( $ signatureMethod ) { if ( ! is_object ( $ signatureMethod ) && ! is_array ( $ signatureMethod ) ) { throw new InvalidParamException ( '"' . get_class ( $ this ) . '::signatureMethod" should be instance of "\yii\autclient\signature\BaseMethod" or its array configuration. "' . gettype ( $ signatureMethod ) . '" has been given.' ) ; } $ this -> _signatureMethod = $ signatureMethod ; }
Set signature method to be used.
@param array|signature\BaseMethod $signatureMethod signature method instance or its array configuration.
@throws InvalidParamException on wrong argument.
Set signature method to be used .