_propDict)) { return $this->_propDict["id"]; } else { return null; } } /** * Sets the id * Index of an entity being mentioned in the specified chatMessage. Matches the {index} value in the corresponding <at id='{index}'> tag in the message body. * * @param int $val The value of the id * * @return ChatMessageMention */ public function setId($val) { $this->_propDict["id"] = $val; return $this; } /** * Gets the mentioned * The entity (user, application, team, or channel) that was @mentioned. * * @return ChatMessageMentionedIdentitySet|null The mentioned */ public function getMentioned() { if (array_key_exists("mentioned", $this->_propDict)) { if (is_a($this->_propDict["mentioned"], "\Microsoft\Graph\Model\ChatMessageMentionedIdentitySet") || is_null($this->_propDict["mentioned"])) { return $this->_propDict["mentioned"]; } else { $this->_propDict["mentioned"] = new ChatMessageMentionedIdentitySet($this->_propDict["mentioned"]); return $this->_propDict["mentioned"]; } } return null; } /** * Sets the mentioned * The entity (user, application, team, or channel) that was @mentioned. * * @param ChatMessageMentionedIdentitySet $val The value to assign to the mentioned * * @return ChatMessageMention The ChatMessageMention */ public function setMentioned($val) { $this->_propDict["mentioned"] = $val; return $this; } /** * Gets the mentionText * String used to represent the mention. For example, a user's display name, a team name. * * @return string|null The mentionText */ public function getMentionText() { if (array_key_exists("mentionText", $this->_propDict)) { return $this->_propDict["mentionText"]; } else { return null; } } /** * Sets the mentionText * String used to represent the mention. For example, a user's display name, a team name. * * @param string $val The value of the mentionText * * @return ChatMessageMention */ public function setMentionText($val) { $this->_propDict["mentionText"] = $val; return $this; } }