Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated v1.0 PHP models using Typewriter #235

Merged
merged 2 commits into from
Sep 26, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 44 additions & 44 deletions src/Model/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,121 +239,121 @@ public function setOwner($val)


/**
* Gets the events
* The events in the calendar. Navigation property. Read-only.
* Gets the singleValueExtendedProperties
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
*
* @return array The events
* @return array The singleValueExtendedProperties
*/
public function getEvents()
public function getSingleValueExtendedProperties()
{
if (array_key_exists("events", $this->_propDict)) {
return $this->_propDict["events"];
if (array_key_exists("singleValueExtendedProperties", $this->_propDict)) {
return $this->_propDict["singleValueExtendedProperties"];
} else {
return null;
}
}

/**
* Sets the events
* The events in the calendar. Navigation property. Read-only.
* Sets the singleValueExtendedProperties
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
*
* @param Event $val The events
* @param SingleValueLegacyExtendedProperty $val The singleValueExtendedProperties
*
* @return Calendar
*/
public function setEvents($val)
public function setSingleValueExtendedProperties($val)
{
$this->_propDict["events"] = $val;
$this->_propDict["singleValueExtendedProperties"] = $val;
return $this;
}


/**
* Gets the calendarView
* The calendar view for the calendar. Navigation property. Read-only.
* Gets the multiValueExtendedProperties
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
*
* @return array The calendarView
* @return array The multiValueExtendedProperties
*/
public function getCalendarView()
public function getMultiValueExtendedProperties()
{
if (array_key_exists("calendarView", $this->_propDict)) {
return $this->_propDict["calendarView"];
if (array_key_exists("multiValueExtendedProperties", $this->_propDict)) {
return $this->_propDict["multiValueExtendedProperties"];
} else {
return null;
}
}

/**
* Sets the calendarView
* The calendar view for the calendar. Navigation property. Read-only.
* Sets the multiValueExtendedProperties
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
*
* @param Event $val The calendarView
* @param MultiValueLegacyExtendedProperty $val The multiValueExtendedProperties
*
* @return Calendar
*/
public function setCalendarView($val)
public function setMultiValueExtendedProperties($val)
{
$this->_propDict["calendarView"] = $val;
$this->_propDict["multiValueExtendedProperties"] = $val;
return $this;
}


/**
* Gets the singleValueExtendedProperties
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
* Gets the events
* The events in the calendar. Navigation property. Read-only.
*
* @return array The singleValueExtendedProperties
* @return array The events
*/
public function getSingleValueExtendedProperties()
public function getEvents()
{
if (array_key_exists("singleValueExtendedProperties", $this->_propDict)) {
return $this->_propDict["singleValueExtendedProperties"];
if (array_key_exists("events", $this->_propDict)) {
return $this->_propDict["events"];
} else {
return null;
}
}

/**
* Sets the singleValueExtendedProperties
* The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
* Sets the events
* The events in the calendar. Navigation property. Read-only.
*
* @param SingleValueLegacyExtendedProperty $val The singleValueExtendedProperties
* @param Event $val The events
*
* @return Calendar
*/
public function setSingleValueExtendedProperties($val)
public function setEvents($val)
{
$this->_propDict["singleValueExtendedProperties"] = $val;
$this->_propDict["events"] = $val;
return $this;
}


/**
* Gets the multiValueExtendedProperties
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
* Gets the calendarView
* The calendar view for the calendar. Navigation property. Read-only.
*
* @return array The multiValueExtendedProperties
* @return array The calendarView
*/
public function getMultiValueExtendedProperties()
public function getCalendarView()
{
if (array_key_exists("multiValueExtendedProperties", $this->_propDict)) {
return $this->_propDict["multiValueExtendedProperties"];
if (array_key_exists("calendarView", $this->_propDict)) {
return $this->_propDict["calendarView"];
} else {
return null;
}
}

/**
* Sets the multiValueExtendedProperties
* The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
* Sets the calendarView
* The calendar view for the calendar. Navigation property. Read-only.
*
* @param MultiValueLegacyExtendedProperty $val The multiValueExtendedProperties
* @param Event $val The calendarView
*
* @return Calendar
*/
public function setMultiValueExtendedProperties($val)
public function setCalendarView($val)
{
$this->_propDict["multiValueExtendedProperties"] = $val;
$this->_propDict["calendarView"] = $val;
return $this;
}

Expand Down
60 changes: 30 additions & 30 deletions src/Model/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,36 +1001,6 @@ public function setChildren($val)
}


/**
* Gets the extensions
* The collection of open extensions defined for the contact. Read-only. Nullable.
*
* @return array The extensions
*/
public function getExtensions()
{
if (array_key_exists("extensions", $this->_propDict)) {
return $this->_propDict["extensions"];
} else {
return null;
}
}

/**
* Sets the extensions
* The collection of open extensions defined for the contact. Read-only. Nullable.
*
* @param Extension $val The extensions
*
* @return Contact
*/
public function setExtensions($val)
{
$this->_propDict["extensions"] = $val;
return $this;
}


/**
* Gets the singleValueExtendedProperties
* The collection of single-value extended properties defined for the contact. Read-only. Nullable.
Expand Down Expand Up @@ -1123,4 +1093,34 @@ public function setPhoto($val)
return $this;
}


/**
* Gets the extensions
* The collection of open extensions defined for the contact. Read-only. Nullable.
*
* @return array The extensions
*/
public function getExtensions()
{
if (array_key_exists("extensions", $this->_propDict)) {
return $this->_propDict["extensions"];
} else {
return null;
}
}

/**
* Sets the extensions
* The collection of open extensions defined for the contact. Read-only. Nullable.
*
* @param Extension $val The extensions
*
* @return Contact
*/
public function setExtensions($val)
{
$this->_propDict["extensions"] = $val;
return $this;
}

}
Loading