Skip to content

Commit 61a9260

Browse files
author
Caitlin Bales (MSFT)
committed
Remove redundant constructors from models
1 parent b7b2a0d commit 61a9260

File tree

138 files changed

+30
-3029
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+30
-3029
lines changed

src/Model/AssignedLicense.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
class AssignedLicense extends Entity
2727
{
2828
/**
29-
* The array of properties available
30-
* to the model
31-
*
32-
* @var array(string => string)
33-
*/
34-
private $_propDict;
35-
/**
36-
* AssignedLicense constructor
37-
*
38-
* @param array $propDict List of properties to set
39-
* Defaults to an empty array
40-
*
41-
* @return AssignedLicense
42-
*/
43-
public function __construct($propDict=array())
44-
{
45-
parent::__construct();
46-
$this->_propDict = $propDict;
47-
return $this;
48-
}
49-
50-
/**
5129
* Gets the property dictionary of the AssignedLicense
5230
*
5331
* @return array The list of properties

src/Model/AssignedPlan.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
class AssignedPlan extends Entity
2727
{
2828
/**
29-
* The array of properties available
30-
* to the model
31-
*
32-
* @var array(string => string)
33-
*/
34-
private $_propDict;
35-
/**
36-
* AssignedPlan constructor
37-
*
38-
* @param array $propDict List of properties to set
39-
* Defaults to an empty array
40-
*
41-
* @return AssignedPlan
42-
*/
43-
public function __construct($propDict=array())
44-
{
45-
parent::__construct();
46-
$this->_propDict = $propDict;
47-
return $this;
48-
}
49-
50-
/**
5129
* Gets the property dictionary of the AssignedPlan
5230
*
5331
* @return array The list of properties

src/Model/Attachment.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
*/
2727
class Attachment extends Entity
2828
{
29-
/**
30-
* The array of properties available
31-
* to the model
32-
*
33-
* @var array(string => string)
34-
*/
35-
private $_propDict;
36-
37-
/**
38-
* Construct a new Attachment
39-
*
40-
* @param array $propDict A list of properties to set
41-
*
42-
* @return Attachment
43-
*/
44-
function __construct($propDict = array())
45-
{
46-
parent::__construct();
47-
$this->_propDict = $propDict;
48-
return $this;
49-
}
50-
5129
/**
5230
* Gets the property dictionary of the Attachment
5331
*

src/Model/Attendee.php

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
class Attendee extends Entity
2727
{
2828
/**
29-
* The array of properties available
30-
* to the model
31-
*
32-
* @var array(string => string)
33-
*/
34-
private $_propDict;
35-
/**
36-
* Attendee constructor
37-
*
38-
* @param array $propDict List of properties to set
39-
* Defaults to an empty array
40-
*
41-
* @return Attendee
42-
*/
43-
public function __construct($propDict=array())
44-
{
45-
parent::__construct();
46-
$this->_propDict = $propDict;
47-
return $this;
48-
}
49-
50-
/**
5129
* Gets the property dictionary of the Attendee
5230
*
5331
* @return array The list of properties
@@ -87,35 +65,4 @@ public function setStatus($val)
8765
$this->_propDict["status"] = $val;
8866
return $this;
8967
}
90-
91-
/**
92-
* Gets the type
93-
*
94-
* @return AttendeeType The type
95-
*/
96-
public function getType()
97-
{
98-
if (array_key_exists("type", $this->_propDict)) {
99-
if (is_a($this->_propDict["type"], "AttendeeType")) {
100-
return $this->_propDict["type"];
101-
} else {
102-
$this->_propDict["type"] = new AttendeeType($this->_propDict["type"]);
103-
return $this->_propDict["type"];
104-
}
105-
}
106-
return null;
107-
}
108-
109-
/**
110-
* Sets the type
111-
*
112-
* @param AttendeeType $val The value to assign to the type
113-
*
114-
* @return Attendee The Attendee
115-
*/
116-
public function setType($val)
117-
{
118-
$this->_propDict["type"] = $val;
119-
return $this;
120-
}
12168
}

src/Model/Audio.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
class Audio extends Entity
2727
{
2828
/**
29-
* The array of properties available
30-
* to the model
31-
*
32-
* @var array(string => string)
33-
*/
34-
private $_propDict;
35-
/**
36-
* Audio constructor
37-
*
38-
* @param array $propDict List of properties to set
39-
* Defaults to an empty array
40-
*
41-
* @return Audio
42-
*/
43-
public function __construct($propDict=array())
44-
{
45-
parent::__construct();
46-
$this->_propDict = $propDict;
47-
return $this;
48-
}
49-
50-
/**
5129
* Gets the property dictionary of the Audio
5230
*
5331
* @return array The list of properties

src/Model/AutomaticRepliesSetting.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
class AutomaticRepliesSetting extends Entity
2727
{
2828
/**
29-
* The array of properties available
30-
* to the model
31-
*
32-
* @var array(string => string)
33-
*/
34-
private $_propDict;
35-
/**
36-
* AutomaticRepliesSetting constructor
37-
*
38-
* @param array $propDict List of properties to set
39-
* Defaults to an empty array
40-
*
41-
* @return AutomaticRepliesSetting
42-
*/
43-
public function __construct($propDict=array())
44-
{
45-
parent::__construct();
46-
$this->_propDict = $propDict;
47-
return $this;
48-
}
49-
50-
/**
5129
* Gets the property dictionary of the AutomaticRepliesSetting
5230
*
5331
* @return array The list of properties

src/Model/Calendar.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
*/
2727
class Calendar extends Entity
2828
{
29-
/**
30-
* The array of properties available
31-
* to the model
32-
*
33-
* @var array(string => string)
34-
*/
35-
private $_propDict;
36-
37-
/**
38-
* Construct a new Calendar
39-
*
40-
* @param array $propDict A list of properties to set
41-
*
42-
* @return Calendar
43-
*/
44-
function __construct($propDict = array())
45-
{
46-
parent::__construct();
47-
$this->_propDict = $propDict;
48-
return $this;
49-
}
50-
5129
/**
5230
* Gets the property dictionary of the Calendar
5331
*

src/Model/CalendarGroup.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
*/
2727
class CalendarGroup extends Entity
2828
{
29-
/**
30-
* The array of properties available
31-
* to the model
32-
*
33-
* @var array(string => string)
34-
*/
35-
private $_propDict;
36-
37-
/**
38-
* Construct a new CalendarGroup
39-
*
40-
* @param array $propDict A list of properties to set
41-
*
42-
* @return CalendarGroup
43-
*/
44-
function __construct($propDict = array())
45-
{
46-
parent::__construct();
47-
$this->_propDict = $propDict;
48-
return $this;
49-
}
50-
5129
/**
5230
* Gets the property dictionary of the CalendarGroup
5331
*

src/Model/Contact.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
*/
2727
class Contact extends Entity
2828
{
29-
/**
30-
* The array of properties available
31-
* to the model
32-
*
33-
* @var array(string => string)
34-
*/
35-
private $_propDict;
36-
37-
/**
38-
* Construct a new Contact
39-
*
40-
* @param array $propDict A list of properties to set
41-
*
42-
* @return Contact
43-
*/
44-
function __construct($propDict = array())
45-
{
46-
parent::__construct();
47-
$this->_propDict = $propDict;
48-
return $this;
49-
}
50-
5129
/**
5230
* Gets the property dictionary of the Contact
5331
*

src/Model/ContactFolder.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@
2626
*/
2727
class ContactFolder extends Entity
2828
{
29-
/**
30-
* The array of properties available
31-
* to the model
32-
*
33-
* @var array(string => string)
34-
*/
35-
private $_propDict;
36-
37-
/**
38-
* Construct a new ContactFolder
39-
*
40-
* @param array $propDict A list of properties to set
41-
*
42-
* @return ContactFolder
43-
*/
44-
function __construct($propDict = array())
45-
{
46-
parent::__construct();
47-
$this->_propDict = $propDict;
48-
return $this;
49-
}
50-
5129
/**
5230
* Gets the property dictionary of the ContactFolder
5331
*

0 commit comments

Comments
 (0)