_propDict)) { if (is_a($this->_propDict["protocol"], "\Microsoft\Graph\Model\WorkforceIntegrationEncryptionProtocol") || is_null($this->_propDict["protocol"])) { return $this->_propDict["protocol"]; } else { $this->_propDict["protocol"] = new WorkforceIntegrationEncryptionProtocol($this->_propDict["protocol"]); return $this->_propDict["protocol"]; } } return null; } /** * Sets the protocol * Possible values are: sharedSecret, unknownFutureValue. * * @param WorkforceIntegrationEncryptionProtocol $val The value to assign to the protocol * * @return WorkforceIntegrationEncryption The WorkforceIntegrationEncryption */ public function setProtocol($val) { $this->_propDict["protocol"] = $val; return $this; } /** * Gets the secret * Encryption shared secret. * * @return string|null The secret */ public function getSecret() { if (array_key_exists("secret", $this->_propDict)) { return $this->_propDict["secret"]; } else { return null; } } /** * Sets the secret * Encryption shared secret. * * @param string $val The value of the secret * * @return WorkforceIntegrationEncryption */ public function setSecret($val) { $this->_propDict["secret"] = $val; return $this; } }