Skip to content

Commit f55cab1

Browse files
Generated v1.0 PHP models using Typewriter (#235)
* Update generated files with build 1808080 * Set version to 1.11.0 * New documentation. * Support for converting Exchange based identifiers.
1 parent 578ed4b commit f55cab1

33 files changed

+1366
-1036
lines changed

src/Core/GraphConstants.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*
1010
* @category Library
1111
* @package Microsoft.Graph
12-
* @copyright 2018 Microsoft Corporation
12+
* @copyright 2019 Microsoft Corporation
1313
* @license https://opensource.org/licenses/MIT MIT License
14-
* @version GIT: 1.0.0
14+
* @version GIT: 1.11.0
1515
* @link https://graph.microsoft.io/
1616
*/
1717

@@ -24,7 +24,7 @@ final class GraphConstants
2424
const REST_ENDPOINT = "https://graph.microsoft.com/";
2525

2626
// Define HTTP request constants
27-
const SDK_VERSION = "1.10.0";
27+
const SDK_VERSION = "1.11.0";
2828

2929
// Define error constants
3030
const MAX_PAGE_SIZE = 999;

src/Model/Calendar.php

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -239,121 +239,121 @@ public function setOwner($val)
239239

240240

241241
/**
242-
* Gets the events
243-
* The events in the calendar. Navigation property. Read-only.
242+
* Gets the singleValueExtendedProperties
243+
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
244244
*
245-
* @return array The events
245+
* @return array The singleValueExtendedProperties
246246
*/
247-
public function getEvents()
247+
public function getSingleValueExtendedProperties()
248248
{
249-
if (array_key_exists("events", $this->_propDict)) {
250-
return $this->_propDict["events"];
249+
if (array_key_exists("singleValueExtendedProperties", $this->_propDict)) {
250+
return $this->_propDict["singleValueExtendedProperties"];
251251
} else {
252252
return null;
253253
}
254254
}
255255

256256
/**
257-
* Sets the events
258-
* The events in the calendar. Navigation property. Read-only.
257+
* Sets the singleValueExtendedProperties
258+
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
259259
*
260-
* @param Event $val The events
260+
* @param SingleValueLegacyExtendedProperty $val The singleValueExtendedProperties
261261
*
262262
* @return Calendar
263263
*/
264-
public function setEvents($val)
264+
public function setSingleValueExtendedProperties($val)
265265
{
266-
$this->_propDict["events"] = $val;
266+
$this->_propDict["singleValueExtendedProperties"] = $val;
267267
return $this;
268268
}
269269

270270

271271
/**
272-
* Gets the calendarView
273-
* The calendar view for the calendar. Navigation property. Read-only.
272+
* Gets the multiValueExtendedProperties
273+
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
274274
*
275-
* @return array The calendarView
275+
* @return array The multiValueExtendedProperties
276276
*/
277-
public function getCalendarView()
277+
public function getMultiValueExtendedProperties()
278278
{
279-
if (array_key_exists("calendarView", $this->_propDict)) {
280-
return $this->_propDict["calendarView"];
279+
if (array_key_exists("multiValueExtendedProperties", $this->_propDict)) {
280+
return $this->_propDict["multiValueExtendedProperties"];
281281
} else {
282282
return null;
283283
}
284284
}
285285

286286
/**
287-
* Sets the calendarView
288-
* The calendar view for the calendar. Navigation property. Read-only.
287+
* Sets the multiValueExtendedProperties
288+
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
289289
*
290-
* @param Event $val The calendarView
290+
* @param MultiValueLegacyExtendedProperty $val The multiValueExtendedProperties
291291
*
292292
* @return Calendar
293293
*/
294-
public function setCalendarView($val)
294+
public function setMultiValueExtendedProperties($val)
295295
{
296-
$this->_propDict["calendarView"] = $val;
296+
$this->_propDict["multiValueExtendedProperties"] = $val;
297297
return $this;
298298
}
299299

300300

301301
/**
302-
* Gets the singleValueExtendedProperties
303-
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
302+
* Gets the events
303+
* The events in the calendar. Navigation property. Read-only.
304304
*
305-
* @return array The singleValueExtendedProperties
305+
* @return array The events
306306
*/
307-
public function getSingleValueExtendedProperties()
307+
public function getEvents()
308308
{
309-
if (array_key_exists("singleValueExtendedProperties", $this->_propDict)) {
310-
return $this->_propDict["singleValueExtendedProperties"];
309+
if (array_key_exists("events", $this->_propDict)) {
310+
return $this->_propDict["events"];
311311
} else {
312312
return null;
313313
}
314314
}
315315

316316
/**
317-
* Sets the singleValueExtendedProperties
318-
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
317+
* Sets the events
318+
* The events in the calendar. Navigation property. Read-only.
319319
*
320-
* @param SingleValueLegacyExtendedProperty $val The singleValueExtendedProperties
320+
* @param Event $val The events
321321
*
322322
* @return Calendar
323323
*/
324-
public function setSingleValueExtendedProperties($val)
324+
public function setEvents($val)
325325
{
326-
$this->_propDict["singleValueExtendedProperties"] = $val;
326+
$this->_propDict["events"] = $val;
327327
return $this;
328328
}
329329

330330

331331
/**
332-
* Gets the multiValueExtendedProperties
333-
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
332+
* Gets the calendarView
333+
* The calendar view for the calendar. Navigation property. Read-only.
334334
*
335-
* @return array The multiValueExtendedProperties
335+
* @return array The calendarView
336336
*/
337-
public function getMultiValueExtendedProperties()
337+
public function getCalendarView()
338338
{
339-
if (array_key_exists("multiValueExtendedProperties", $this->_propDict)) {
340-
return $this->_propDict["multiValueExtendedProperties"];
339+
if (array_key_exists("calendarView", $this->_propDict)) {
340+
return $this->_propDict["calendarView"];
341341
} else {
342342
return null;
343343
}
344344
}
345345

346346
/**
347-
* Sets the multiValueExtendedProperties
348-
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
347+
* Sets the calendarView
348+
* The calendar view for the calendar. Navigation property. Read-only.
349349
*
350-
* @param MultiValueLegacyExtendedProperty $val The multiValueExtendedProperties
350+
* @param Event $val The calendarView
351351
*
352352
* @return Calendar
353353
*/
354-
public function setMultiValueExtendedProperties($val)
354+
public function setCalendarView($val)
355355
{
356-
$this->_propDict["multiValueExtendedProperties"] = $val;
356+
$this->_propDict["calendarView"] = $val;
357357
return $this;
358358
}
359359

src/Model/Contact.php

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,36 +1001,6 @@ public function setChildren($val)
10011001
}
10021002

10031003

1004-
/**
1005-
* Gets the extensions
1006-
* The collection of open extensions defined for the contact. Read-only. Nullable.
1007-
*
1008-
* @return array The extensions
1009-
*/
1010-
public function getExtensions()
1011-
{
1012-
if (array_key_exists("extensions", $this->_propDict)) {
1013-
return $this->_propDict["extensions"];
1014-
} else {
1015-
return null;
1016-
}
1017-
}
1018-
1019-
/**
1020-
* Sets the extensions
1021-
* The collection of open extensions defined for the contact. Read-only. Nullable.
1022-
*
1023-
* @param Extension $val The extensions
1024-
*
1025-
* @return Contact
1026-
*/
1027-
public function setExtensions($val)
1028-
{
1029-
$this->_propDict["extensions"] = $val;
1030-
return $this;
1031-
}
1032-
1033-
10341004
/**
10351005
* Gets the singleValueExtendedProperties
10361006
* The collection of single-value extended properties defined for the contact. Read-only. Nullable.
@@ -1123,4 +1093,34 @@ public function setPhoto($val)
11231093
return $this;
11241094
}
11251095

1096+
1097+
/**
1098+
* Gets the extensions
1099+
* The collection of open extensions defined for the contact. Read-only. Nullable.
1100+
*
1101+
* @return array The extensions
1102+
*/
1103+
public function getExtensions()
1104+
{
1105+
if (array_key_exists("extensions", $this->_propDict)) {
1106+
return $this->_propDict["extensions"];
1107+
} else {
1108+
return null;
1109+
}
1110+
}
1111+
1112+
/**
1113+
* Sets the extensions
1114+
* The collection of open extensions defined for the contact. Read-only. Nullable.
1115+
*
1116+
* @param Extension $val The extensions
1117+
*
1118+
* @return Contact
1119+
*/
1120+
public function setExtensions($val)
1121+
{
1122+
$this->_propDict["extensions"] = $val;
1123+
return $this;
1124+
}
1125+
11261126
}

0 commit comments

Comments
 (0)