_propDict = $propDict; } /** * Gets the property dictionary of the CommsApplication * * @return array The list of properties */ public function getProperties() { return $this->_propDict; } /** * Gets the calls * * @return array|null The calls */ public function getCalls() { if (array_key_exists("calls", $this->_propDict)) { return $this->_propDict["calls"]; } else { return null; } } /** * Sets the calls * * @param Call[] $val The calls * * @return CommsApplication */ public function setCalls($val) { $this->_propDict["calls"] = $val; return $this; } /** * Gets the onlineMeetings * * @return array|null The onlineMeetings */ public function getOnlineMeetings() { if (array_key_exists("onlineMeetings", $this->_propDict)) { return $this->_propDict["onlineMeetings"]; } else { return null; } } /** * Sets the onlineMeetings * * @param OnlineMeeting[] $val The onlineMeetings * * @return CommsApplication */ public function setOnlineMeetings($val) { $this->_propDict["onlineMeetings"] = $val; return $this; } /** * Gets the ODataType * * @return string|null The ODataType */ public function getODataType() { if (array_key_exists('@odata.type', $this->_propDict)) { return $this->_propDict["@odata.type"]; } return null; } /** * Sets the ODataType * * @param string $val The ODataType * * @return CommsApplication */ public function setODataType($val) { $this->_propDict["@odata.type"] = $val; return $this; } /** * Serializes the object by property array * Manually serialize DateTime into RFC3339 format * * @return array The list of properties */ #[\ReturnTypeWillChange] public function jsonSerialize() { $serializableProperties = $this->getProperties(); foreach ($serializableProperties as $property => $val) { if (is_a($val, "\DateTime")) { $serializableProperties[$property] = $val->format(\DateTime::RFC3339); } else if (is_a($val, "\Microsoft\Graph\Core\Enum")) { $serializableProperties[$property] = $val->value(); } else if (is_a($val, "\Entity")) { $serializableProperties[$property] = $val->jsonSerialize(); } else if (is_a($val, "\GuzzleHttp\Psr7\Stream")) { $serializableProperties[$property] = (string) $val; } } return $serializableProperties; } }