Skip to content

Commit ec0bd46

Browse files
author
Caitlin Bales (MSFT)
authored
Merge pull request #6 from microsoftgraph/constructor_cleanup
Constructor cleanup to address issue #5
2 parents 3375226 + 61a9260 commit ec0bd46

File tree

139 files changed

+88
-3110
lines changed

Some content is hidden

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

139 files changed

+88
-3110
lines changed
Lines changed: 58 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,45 @@
11
<?php
22
/**
3-
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4-
*
5-
* AlternativeSecurityId File
6-
* PHP version 7
7-
*
8-
* @category Library
9-
* @package Microsoft.Graph
10-
* @copyright 2016 Microsoft Corporation
11-
* @license https://opensource.org/licenses/MIT MIT License
12-
* @version GIT: 0.1.0
13-
* @link https://graph.microsoft.io/
14-
*/
3+
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
4+
*
5+
* AlternativeSecurityId File
6+
* PHP version 7
7+
*
8+
* @category Library
9+
* @package Microsoft.Graph
10+
* @copyright 2016 Microsoft Corporation
11+
* @license https://opensource.org/licenses/MIT MIT License
12+
* @version GIT: 0.1.0
13+
* @link https://graph.microsoft.io/
14+
*/
1515
namespace Microsoft\Graph\Model;
1616
/**
17-
* AlternativeSecurityId class
18-
*
19-
* @category Model
20-
* @package Microsoft.Graph
21-
* @copyright 2016 Microsoft Corporation
22-
* @license https://opensource.org/licenses/MIT MIT License
23-
* @version Release: 0.1.0
24-
* @link https://graph.microsoft.io/
25-
*/
17+
* AlternativeSecurityId class
18+
*
19+
* @category Model
20+
* @package Microsoft.Graph
21+
* @copyright 2016 Microsoft Corporation
22+
* @license https://opensource.org/licenses/MIT MIT License
23+
* @version Release: 0.1.0
24+
* @link https://graph.microsoft.io/
25+
*/
2626
class AlternativeSecurityId 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-
/**
37-
* AlternativeSecurityId constructor
38-
*
39-
* @param array $propDict List of properties to set
40-
* Defaults to an empty array
41-
*
42-
* @return AlternativeSecurityId
43-
*/
44-
public function __construct($propDict = array())
45-
{
46-
parent::__construct();
47-
$this->_propDict = $propDict;
48-
return $this;
49-
}
50-
51-
/**
52-
* Gets the property dictionary of the AlternativeSecurityId
53-
*
54-
* @return array The list of properties
55-
*/
29+
* Gets the property dictionary of the AlternativeSecurityId
30+
*
31+
* @return array The list of properties
32+
*/
5633
public function getProperties()
5734
{
5835
return $this->_propDict;
5936
}
60-
37+
6138
/**
62-
* Gets the type
63-
*
64-
* @return int The type
65-
*/
39+
* Gets the type
40+
*
41+
* @return int The type
42+
*/
6643
public function getType()
6744
{
6845
if (array_key_exists("type", $this->_propDict)) {
@@ -73,23 +50,23 @@ public function getType()
7350
}
7451

7552
/**
76-
* Sets the type
77-
*
78-
* @param int $val The value of the type
79-
*
80-
* @return AlternativeSecurityId
81-
*/
53+
* Sets the type
54+
*
55+
* @param int $val The value of the type
56+
*
57+
* @return AlternativeSecurityId
58+
*/
8259
public function setType($val)
8360
{
8461
$this->_propDict["type"] = $val;
8562
return $this;
8663
}
87-
64+
8865
/**
89-
* Gets the identityProvider
90-
*
91-
* @return string The identityProvider
92-
*/
66+
* Gets the identityProvider
67+
*
68+
* @return string The identityProvider
69+
*/
9370
public function getIdentityProvider()
9471
{
9572
if (array_key_exists("identityProvider", $this->_propDict)) {
@@ -100,23 +77,23 @@ public function getIdentityProvider()
10077
}
10178

10279
/**
103-
* Sets the identityProvider
104-
*
105-
* @param string $val The value of the identityProvider
106-
*
107-
* @return AlternativeSecurityId
108-
*/
80+
* Sets the identityProvider
81+
*
82+
* @param string $val The value of the identityProvider
83+
*
84+
* @return AlternativeSecurityId
85+
*/
10986
public function setIdentityProvider($val)
11087
{
11188
$this->_propDict["identity_provider"] = $val;
11289
return $this;
11390
}
11491

11592
/**
116-
* Gets the key
117-
*
118-
* @return \GuzzleHttp\Psr7\Stream The key
119-
*/
93+
* Gets the key
94+
*
95+
* @return \GuzzleHttp\Psr7\Stream The key
96+
*/
12097
public function getKey()
12198
{
12299
if (array_key_exists("key", $this->_propDict)) {
@@ -131,15 +108,15 @@ public function getKey()
131108
}
132109

133110
/**
134-
* Sets the key
135-
*
136-
* @param \GuzzleHttp\Psr7\Stream $val The value to assign to the key
137-
*
138-
* @return AlternativeSecurityId The AlternativeSecurityId
139-
*/
111+
* Sets the key
112+
*
113+
* @param \GuzzleHttp\Psr7\Stream $val The value to assign to the key
114+
*
115+
* @return AlternativeSecurityId The AlternativeSecurityId
116+
*/
140117
public function setKey($val)
141118
{
142119
$this->_propDict["key"] = $val;
143-
return $this;
120+
return $this;
144121
}
145122
}

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

0 commit comments

Comments
 (0)