| Total Complexity | 89 |
| Total Lines | 886 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like EwsPersonType often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use EwsPersonType, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 16 | class EwsPersonType extends AbstractStructBase |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The FullName |
||
| 20 | * Meta information extracted from the WSDL |
||
| 21 | * - maxOccurs: 1 |
||
| 22 | * - minOccurs: 0 |
||
| 23 | * @var string|null |
||
| 24 | */ |
||
| 25 | protected ?string $FullName = null; |
||
| 26 | /** |
||
| 27 | * The GivenName |
||
| 28 | * Meta information extracted from the WSDL |
||
| 29 | * - maxOccurs: 1 |
||
| 30 | * - minOccurs: 0 |
||
| 31 | * @var string|null |
||
| 32 | */ |
||
| 33 | protected ?string $GivenName = null; |
||
| 34 | /** |
||
| 35 | * The Surname |
||
| 36 | * Meta information extracted from the WSDL |
||
| 37 | * - maxOccurs: 1 |
||
| 38 | * - minOccurs: 0 |
||
| 39 | * @var string|null |
||
| 40 | */ |
||
| 41 | protected ?string $Surname = null; |
||
| 42 | /** |
||
| 43 | * The PhoneNumber |
||
| 44 | * Meta information extracted from the WSDL |
||
| 45 | * - maxOccurs: 1 |
||
| 46 | * - minOccurs: 0 |
||
| 47 | * @var string|null |
||
| 48 | */ |
||
| 49 | protected ?string $PhoneNumber = null; |
||
| 50 | /** |
||
| 51 | * The SMSNumber |
||
| 52 | * Meta information extracted from the WSDL |
||
| 53 | * - maxOccurs: 1 |
||
| 54 | * - minOccurs: 0 |
||
| 55 | * @var string|null |
||
| 56 | */ |
||
| 57 | protected ?string $SMSNumber = null; |
||
| 58 | /** |
||
| 59 | * The EmailAddress |
||
| 60 | * Meta information extracted from the WSDL |
||
| 61 | * - maxOccurs: 1 |
||
| 62 | * - minOccurs: 0 |
||
| 63 | * @var string|null |
||
| 64 | */ |
||
| 65 | protected ?string $EmailAddress = null; |
||
| 66 | /** |
||
| 67 | * The Alias |
||
| 68 | * Meta information extracted from the WSDL |
||
| 69 | * - maxOccurs: 1 |
||
| 70 | * - minOccurs: 0 |
||
| 71 | * @var string|null |
||
| 72 | */ |
||
| 73 | protected ?string $Alias = null; |
||
| 74 | /** |
||
| 75 | * The Department |
||
| 76 | * Meta information extracted from the WSDL |
||
| 77 | * - maxOccurs: 1 |
||
| 78 | * - minOccurs: 0 |
||
| 79 | * @var string|null |
||
| 80 | */ |
||
| 81 | protected ?string $Department = null; |
||
| 82 | /** |
||
| 83 | * The LinkedInProfileLink |
||
| 84 | * Meta information extracted from the WSDL |
||
| 85 | * - maxOccurs: 1 |
||
| 86 | * - minOccurs: 0 |
||
| 87 | * @var string|null |
||
| 88 | */ |
||
| 89 | protected ?string $LinkedInProfileLink = null; |
||
| 90 | /** |
||
| 91 | * The Skills |
||
| 92 | * Meta information extracted from the WSDL |
||
| 93 | * - maxOccurs: 1 |
||
| 94 | * - minOccurs: 0 |
||
| 95 | * @var \ArrayType\EwsArrayOfSkillInsightValue|null |
||
| 96 | */ |
||
| 97 | protected ?\ArrayType\EwsArrayOfSkillInsightValue $Skills = null; |
||
| 98 | /** |
||
| 99 | * The ProfessionalBiography |
||
| 100 | * Meta information extracted from the WSDL |
||
| 101 | * - maxOccurs: 1 |
||
| 102 | * - minOccurs: 0 |
||
| 103 | * @var string|null |
||
| 104 | */ |
||
| 105 | protected ?string $ProfessionalBiography = null; |
||
| 106 | /** |
||
| 107 | * The ManagementChain |
||
| 108 | * Meta information extracted from the WSDL |
||
| 109 | * - maxOccurs: 1 |
||
| 110 | * - minOccurs: 0 |
||
| 111 | * @var \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 112 | */ |
||
| 113 | protected ?\ArrayType\EwsArrayOfProfileInsightValue $ManagementChain = null; |
||
| 114 | /** |
||
| 115 | * The DirectReports |
||
| 116 | * Meta information extracted from the WSDL |
||
| 117 | * - maxOccurs: 1 |
||
| 118 | * - minOccurs: 0 |
||
| 119 | * @var \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 120 | */ |
||
| 121 | protected ?\ArrayType\EwsArrayOfProfileInsightValue $DirectReports = null; |
||
| 122 | /** |
||
| 123 | * The Peers |
||
| 124 | * Meta information extracted from the WSDL |
||
| 125 | * - maxOccurs: 1 |
||
| 126 | * - minOccurs: 0 |
||
| 127 | * @var \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 128 | */ |
||
| 129 | protected ?\ArrayType\EwsArrayOfProfileInsightValue $Peers = null; |
||
| 130 | /** |
||
| 131 | * The TeamSize |
||
| 132 | * Meta information extracted from the WSDL |
||
| 133 | * - maxOccurs: 1 |
||
| 134 | * - minOccurs: 0 |
||
| 135 | * @var string|null |
||
| 136 | */ |
||
| 137 | protected ?string $TeamSize = null; |
||
| 138 | /** |
||
| 139 | * The CurrentJob |
||
| 140 | * Meta information extracted from the WSDL |
||
| 141 | * - maxOccurs: 1 |
||
| 142 | * - minOccurs: 0 |
||
| 143 | * @var \ArrayType\EwsArrayOfJobInsightValue|null |
||
| 144 | */ |
||
| 145 | protected ?\ArrayType\EwsArrayOfJobInsightValue $CurrentJob = null; |
||
| 146 | /** |
||
| 147 | * The Birthday |
||
| 148 | * Meta information extracted from the WSDL |
||
| 149 | * - maxOccurs: 1 |
||
| 150 | * - minOccurs: 0 |
||
| 151 | * @var string|null |
||
| 152 | */ |
||
| 153 | protected ?string $Birthday = null; |
||
| 154 | /** |
||
| 155 | * The Hometown |
||
| 156 | * Meta information extracted from the WSDL |
||
| 157 | * - maxOccurs: 1 |
||
| 158 | * - minOccurs: 0 |
||
| 159 | * @var string|null |
||
| 160 | */ |
||
| 161 | protected ?string $Hometown = null; |
||
| 162 | /** |
||
| 163 | * The CurrentLocation |
||
| 164 | * Meta information extracted from the WSDL |
||
| 165 | * - maxOccurs: 1 |
||
| 166 | * - minOccurs: 0 |
||
| 167 | * @var string|null |
||
| 168 | */ |
||
| 169 | protected ?string $CurrentLocation = null; |
||
| 170 | /** |
||
| 171 | * The CompanyProfile |
||
| 172 | * Meta information extracted from the WSDL |
||
| 173 | * - maxOccurs: 1 |
||
| 174 | * - minOccurs: 0 |
||
| 175 | * @var \ArrayType\EwsArrayOfCompanyInsightValue|null |
||
| 176 | */ |
||
| 177 | protected ?\ArrayType\EwsArrayOfCompanyInsightValue $CompanyProfile = null; |
||
| 178 | /** |
||
| 179 | * The Office |
||
| 180 | * Meta information extracted from the WSDL |
||
| 181 | * - maxOccurs: 1 |
||
| 182 | * - minOccurs: 0 |
||
| 183 | * @var string|null |
||
| 184 | */ |
||
| 185 | protected ?string $Office = null; |
||
| 186 | /** |
||
| 187 | * The Headline |
||
| 188 | * Meta information extracted from the WSDL |
||
| 189 | * - maxOccurs: 1 |
||
| 190 | * - minOccurs: 0 |
||
| 191 | * @var string|null |
||
| 192 | */ |
||
| 193 | protected ?string $Headline = null; |
||
| 194 | /** |
||
| 195 | * The MutualConnections |
||
| 196 | * Meta information extracted from the WSDL |
||
| 197 | * - maxOccurs: 1 |
||
| 198 | * - minOccurs: 0 |
||
| 199 | * @var \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 200 | */ |
||
| 201 | protected ?\ArrayType\EwsArrayOfProfileInsightValue $MutualConnections = null; |
||
| 202 | /** |
||
| 203 | * The Title |
||
| 204 | * Meta information extracted from the WSDL |
||
| 205 | * - maxOccurs: 1 |
||
| 206 | * - minOccurs: 0 |
||
| 207 | * @var string|null |
||
| 208 | */ |
||
| 209 | protected ?string $Title = null; |
||
| 210 | /** |
||
| 211 | * The MutualManager |
||
| 212 | * Meta information extracted from the WSDL |
||
| 213 | * - maxOccurs: 1 |
||
| 214 | * - minOccurs: 0 |
||
| 215 | * @var \StructType\EwsProfileInsightValue|null |
||
| 216 | */ |
||
| 217 | protected ?\StructType\EwsProfileInsightValue $MutualManager = null; |
||
| 218 | /** |
||
| 219 | * The Insights |
||
| 220 | * Meta information extracted from the WSDL |
||
| 221 | * - maxOccurs: 1 |
||
| 222 | * - minOccurs: 0 |
||
| 223 | * @var \ArrayType\EwsArrayOfInsight|null |
||
| 224 | */ |
||
| 225 | protected ?\ArrayType\EwsArrayOfInsight $Insights = null; |
||
| 226 | /** |
||
| 227 | * The UserProfilePicture |
||
| 228 | * Meta information extracted from the WSDL |
||
| 229 | * - maxOccurs: 1 |
||
| 230 | * - minOccurs: 0 |
||
| 231 | * @var \StructType\EwsUserProfilePicture|null |
||
| 232 | */ |
||
| 233 | protected ?\StructType\EwsUserProfilePicture $UserProfilePicture = null; |
||
| 234 | /** |
||
| 235 | * Constructor method for PersonType |
||
| 236 | * @uses EwsPersonType::setFullName() |
||
| 237 | * @uses EwsPersonType::setGivenName() |
||
| 238 | * @uses EwsPersonType::setSurname() |
||
| 239 | * @uses EwsPersonType::setPhoneNumber() |
||
| 240 | * @uses EwsPersonType::setSMSNumber() |
||
| 241 | * @uses EwsPersonType::setEmailAddress() |
||
| 242 | * @uses EwsPersonType::setAlias() |
||
| 243 | * @uses EwsPersonType::setDepartment() |
||
| 244 | * @uses EwsPersonType::setLinkedInProfileLink() |
||
| 245 | * @uses EwsPersonType::setSkills() |
||
| 246 | * @uses EwsPersonType::setProfessionalBiography() |
||
| 247 | * @uses EwsPersonType::setManagementChain() |
||
| 248 | * @uses EwsPersonType::setDirectReports() |
||
| 249 | * @uses EwsPersonType::setPeers() |
||
| 250 | * @uses EwsPersonType::setTeamSize() |
||
| 251 | * @uses EwsPersonType::setCurrentJob() |
||
| 252 | * @uses EwsPersonType::setBirthday() |
||
| 253 | * @uses EwsPersonType::setHometown() |
||
| 254 | * @uses EwsPersonType::setCurrentLocation() |
||
| 255 | * @uses EwsPersonType::setCompanyProfile() |
||
| 256 | * @uses EwsPersonType::setOffice() |
||
| 257 | * @uses EwsPersonType::setHeadline() |
||
| 258 | * @uses EwsPersonType::setMutualConnections() |
||
| 259 | * @uses EwsPersonType::setTitle() |
||
| 260 | * @uses EwsPersonType::setMutualManager() |
||
| 261 | * @uses EwsPersonType::setInsights() |
||
| 262 | * @uses EwsPersonType::setUserProfilePicture() |
||
| 263 | * @param string $fullName |
||
| 264 | * @param string $givenName |
||
| 265 | * @param string $surname |
||
| 266 | * @param string $phoneNumber |
||
| 267 | * @param string $sMSNumber |
||
| 268 | * @param string $emailAddress |
||
| 269 | * @param string $alias |
||
| 270 | * @param string $department |
||
| 271 | * @param string $linkedInProfileLink |
||
| 272 | * @param \ArrayType\EwsArrayOfSkillInsightValue $skills |
||
| 273 | * @param string $professionalBiography |
||
| 274 | * @param \ArrayType\EwsArrayOfProfileInsightValue $managementChain |
||
| 275 | * @param \ArrayType\EwsArrayOfProfileInsightValue $directReports |
||
| 276 | * @param \ArrayType\EwsArrayOfProfileInsightValue $peers |
||
| 277 | * @param string $teamSize |
||
| 278 | * @param \ArrayType\EwsArrayOfJobInsightValue $currentJob |
||
| 279 | * @param string $birthday |
||
| 280 | * @param string $hometown |
||
| 281 | * @param string $currentLocation |
||
| 282 | * @param \ArrayType\EwsArrayOfCompanyInsightValue $companyProfile |
||
| 283 | * @param string $office |
||
| 284 | * @param string $headline |
||
| 285 | * @param \ArrayType\EwsArrayOfProfileInsightValue $mutualConnections |
||
| 286 | * @param string $title |
||
| 287 | * @param \StructType\EwsProfileInsightValue $mutualManager |
||
| 288 | * @param \ArrayType\EwsArrayOfInsight $insights |
||
| 289 | * @param \StructType\EwsUserProfilePicture $userProfilePicture |
||
| 290 | */ |
||
| 291 | public function __construct(?string $fullName = null, ?string $givenName = null, ?string $surname = null, ?string $phoneNumber = null, ?string $sMSNumber = null, ?string $emailAddress = null, ?string $alias = null, ?string $department = null, ?string $linkedInProfileLink = null, ?\ArrayType\EwsArrayOfSkillInsightValue $skills = null, ?string $professionalBiography = null, ?\ArrayType\EwsArrayOfProfileInsightValue $managementChain = null, ?\ArrayType\EwsArrayOfProfileInsightValue $directReports = null, ?\ArrayType\EwsArrayOfProfileInsightValue $peers = null, ?string $teamSize = null, ?\ArrayType\EwsArrayOfJobInsightValue $currentJob = null, ?string $birthday = null, ?string $hometown = null, ?string $currentLocation = null, ?\ArrayType\EwsArrayOfCompanyInsightValue $companyProfile = null, ?string $office = null, ?string $headline = null, ?\ArrayType\EwsArrayOfProfileInsightValue $mutualConnections = null, ?string $title = null, ?\StructType\EwsProfileInsightValue $mutualManager = null, ?\ArrayType\EwsArrayOfInsight $insights = null, ?\StructType\EwsUserProfilePicture $userProfilePicture = null) |
||
| 292 | { |
||
| 293 | $this |
||
| 294 | ->setFullName($fullName) |
||
| 295 | ->setGivenName($givenName) |
||
| 296 | ->setSurname($surname) |
||
| 297 | ->setPhoneNumber($phoneNumber) |
||
| 298 | ->setSMSNumber($sMSNumber) |
||
| 299 | ->setEmailAddress($emailAddress) |
||
| 300 | ->setAlias($alias) |
||
| 301 | ->setDepartment($department) |
||
| 302 | ->setLinkedInProfileLink($linkedInProfileLink) |
||
| 303 | ->setSkills($skills) |
||
| 304 | ->setProfessionalBiography($professionalBiography) |
||
| 305 | ->setManagementChain($managementChain) |
||
| 306 | ->setDirectReports($directReports) |
||
| 307 | ->setPeers($peers) |
||
| 308 | ->setTeamSize($teamSize) |
||
| 309 | ->setCurrentJob($currentJob) |
||
| 310 | ->setBirthday($birthday) |
||
| 311 | ->setHometown($hometown) |
||
| 312 | ->setCurrentLocation($currentLocation) |
||
| 313 | ->setCompanyProfile($companyProfile) |
||
| 314 | ->setOffice($office) |
||
| 315 | ->setHeadline($headline) |
||
| 316 | ->setMutualConnections($mutualConnections) |
||
| 317 | ->setTitle($title) |
||
| 318 | ->setMutualManager($mutualManager) |
||
| 319 | ->setInsights($insights) |
||
| 320 | ->setUserProfilePicture($userProfilePicture); |
||
| 321 | } |
||
| 322 | /** |
||
| 323 | * Get FullName value |
||
| 324 | * @return string|null |
||
| 325 | */ |
||
| 326 | public function getFullName(): ?string |
||
| 327 | { |
||
| 328 | return $this->FullName; |
||
| 329 | } |
||
| 330 | /** |
||
| 331 | * Set FullName value |
||
| 332 | * @param string $fullName |
||
| 333 | * @return \StructType\EwsPersonType |
||
| 334 | */ |
||
| 335 | public function setFullName(?string $fullName = null): self |
||
| 336 | { |
||
| 337 | // validation for constraint: string |
||
| 338 | if (!is_null($fullName) && !is_string($fullName)) { |
||
|
|
|||
| 339 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($fullName, true), gettype($fullName)), __LINE__); |
||
| 340 | } |
||
| 341 | $this->FullName = $fullName; |
||
| 342 | |||
| 343 | return $this; |
||
| 344 | } |
||
| 345 | /** |
||
| 346 | * Get GivenName value |
||
| 347 | * @return string|null |
||
| 348 | */ |
||
| 349 | public function getGivenName(): ?string |
||
| 350 | { |
||
| 351 | return $this->GivenName; |
||
| 352 | } |
||
| 353 | /** |
||
| 354 | * Set GivenName value |
||
| 355 | * @param string $givenName |
||
| 356 | * @return \StructType\EwsPersonType |
||
| 357 | */ |
||
| 358 | public function setGivenName(?string $givenName = null): self |
||
| 359 | { |
||
| 360 | // validation for constraint: string |
||
| 361 | if (!is_null($givenName) && !is_string($givenName)) { |
||
| 362 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($givenName, true), gettype($givenName)), __LINE__); |
||
| 363 | } |
||
| 364 | $this->GivenName = $givenName; |
||
| 365 | |||
| 366 | return $this; |
||
| 367 | } |
||
| 368 | /** |
||
| 369 | * Get Surname value |
||
| 370 | * @return string|null |
||
| 371 | */ |
||
| 372 | public function getSurname(): ?string |
||
| 373 | { |
||
| 374 | return $this->Surname; |
||
| 375 | } |
||
| 376 | /** |
||
| 377 | * Set Surname value |
||
| 378 | * @param string $surname |
||
| 379 | * @return \StructType\EwsPersonType |
||
| 380 | */ |
||
| 381 | public function setSurname(?string $surname = null): self |
||
| 382 | { |
||
| 383 | // validation for constraint: string |
||
| 384 | if (!is_null($surname) && !is_string($surname)) { |
||
| 385 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($surname, true), gettype($surname)), __LINE__); |
||
| 386 | } |
||
| 387 | $this->Surname = $surname; |
||
| 388 | |||
| 389 | return $this; |
||
| 390 | } |
||
| 391 | /** |
||
| 392 | * Get PhoneNumber value |
||
| 393 | * @return string|null |
||
| 394 | */ |
||
| 395 | public function getPhoneNumber(): ?string |
||
| 396 | { |
||
| 397 | return $this->PhoneNumber; |
||
| 398 | } |
||
| 399 | /** |
||
| 400 | * Set PhoneNumber value |
||
| 401 | * @param string $phoneNumber |
||
| 402 | * @return \StructType\EwsPersonType |
||
| 403 | */ |
||
| 404 | public function setPhoneNumber(?string $phoneNumber = null): self |
||
| 405 | { |
||
| 406 | // validation for constraint: string |
||
| 407 | if (!is_null($phoneNumber) && !is_string($phoneNumber)) { |
||
| 408 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($phoneNumber, true), gettype($phoneNumber)), __LINE__); |
||
| 409 | } |
||
| 410 | $this->PhoneNumber = $phoneNumber; |
||
| 411 | |||
| 412 | return $this; |
||
| 413 | } |
||
| 414 | /** |
||
| 415 | * Get SMSNumber value |
||
| 416 | * @return string|null |
||
| 417 | */ |
||
| 418 | public function getSMSNumber(): ?string |
||
| 419 | { |
||
| 420 | return $this->SMSNumber; |
||
| 421 | } |
||
| 422 | /** |
||
| 423 | * Set SMSNumber value |
||
| 424 | * @param string $sMSNumber |
||
| 425 | * @return \StructType\EwsPersonType |
||
| 426 | */ |
||
| 427 | public function setSMSNumber(?string $sMSNumber = null): self |
||
| 428 | { |
||
| 429 | // validation for constraint: string |
||
| 430 | if (!is_null($sMSNumber) && !is_string($sMSNumber)) { |
||
| 431 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sMSNumber, true), gettype($sMSNumber)), __LINE__); |
||
| 432 | } |
||
| 433 | $this->SMSNumber = $sMSNumber; |
||
| 434 | |||
| 435 | return $this; |
||
| 436 | } |
||
| 437 | /** |
||
| 438 | * Get EmailAddress value |
||
| 439 | * @return string|null |
||
| 440 | */ |
||
| 441 | public function getEmailAddress(): ?string |
||
| 442 | { |
||
| 443 | return $this->EmailAddress; |
||
| 444 | } |
||
| 445 | /** |
||
| 446 | * Set EmailAddress value |
||
| 447 | * @param string $emailAddress |
||
| 448 | * @return \StructType\EwsPersonType |
||
| 449 | */ |
||
| 450 | public function setEmailAddress(?string $emailAddress = null): self |
||
| 451 | { |
||
| 452 | // validation for constraint: string |
||
| 453 | if (!is_null($emailAddress) && !is_string($emailAddress)) { |
||
| 454 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($emailAddress, true), gettype($emailAddress)), __LINE__); |
||
| 455 | } |
||
| 456 | $this->EmailAddress = $emailAddress; |
||
| 457 | |||
| 458 | return $this; |
||
| 459 | } |
||
| 460 | /** |
||
| 461 | * Get Alias value |
||
| 462 | * @return string|null |
||
| 463 | */ |
||
| 464 | public function getAlias(): ?string |
||
| 465 | { |
||
| 466 | return $this->Alias; |
||
| 467 | } |
||
| 468 | /** |
||
| 469 | * Set Alias value |
||
| 470 | * @param string $alias |
||
| 471 | * @return \StructType\EwsPersonType |
||
| 472 | */ |
||
| 473 | public function setAlias(?string $alias = null): self |
||
| 474 | { |
||
| 475 | // validation for constraint: string |
||
| 476 | if (!is_null($alias) && !is_string($alias)) { |
||
| 477 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($alias, true), gettype($alias)), __LINE__); |
||
| 478 | } |
||
| 479 | $this->Alias = $alias; |
||
| 480 | |||
| 481 | return $this; |
||
| 482 | } |
||
| 483 | /** |
||
| 484 | * Get Department value |
||
| 485 | * @return string|null |
||
| 486 | */ |
||
| 487 | public function getDepartment(): ?string |
||
| 488 | { |
||
| 489 | return $this->Department; |
||
| 490 | } |
||
| 491 | /** |
||
| 492 | * Set Department value |
||
| 493 | * @param string $department |
||
| 494 | * @return \StructType\EwsPersonType |
||
| 495 | */ |
||
| 496 | public function setDepartment(?string $department = null): self |
||
| 497 | { |
||
| 498 | // validation for constraint: string |
||
| 499 | if (!is_null($department) && !is_string($department)) { |
||
| 500 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($department, true), gettype($department)), __LINE__); |
||
| 501 | } |
||
| 502 | $this->Department = $department; |
||
| 503 | |||
| 504 | return $this; |
||
| 505 | } |
||
| 506 | /** |
||
| 507 | * Get LinkedInProfileLink value |
||
| 508 | * @return string|null |
||
| 509 | */ |
||
| 510 | public function getLinkedInProfileLink(): ?string |
||
| 511 | { |
||
| 512 | return $this->LinkedInProfileLink; |
||
| 513 | } |
||
| 514 | /** |
||
| 515 | * Set LinkedInProfileLink value |
||
| 516 | * @param string $linkedInProfileLink |
||
| 517 | * @return \StructType\EwsPersonType |
||
| 518 | */ |
||
| 519 | public function setLinkedInProfileLink(?string $linkedInProfileLink = null): self |
||
| 520 | { |
||
| 521 | // validation for constraint: string |
||
| 522 | if (!is_null($linkedInProfileLink) && !is_string($linkedInProfileLink)) { |
||
| 523 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($linkedInProfileLink, true), gettype($linkedInProfileLink)), __LINE__); |
||
| 524 | } |
||
| 525 | $this->LinkedInProfileLink = $linkedInProfileLink; |
||
| 526 | |||
| 527 | return $this; |
||
| 528 | } |
||
| 529 | /** |
||
| 530 | * Get Skills value |
||
| 531 | * @return \ArrayType\EwsArrayOfSkillInsightValue|null |
||
| 532 | */ |
||
| 533 | public function getSkills(): ?\ArrayType\EwsArrayOfSkillInsightValue |
||
| 534 | { |
||
| 535 | return $this->Skills; |
||
| 536 | } |
||
| 537 | /** |
||
| 538 | * Set Skills value |
||
| 539 | * @param \ArrayType\EwsArrayOfSkillInsightValue $skills |
||
| 540 | * @return \StructType\EwsPersonType |
||
| 541 | */ |
||
| 542 | public function setSkills(?\ArrayType\EwsArrayOfSkillInsightValue $skills = null): self |
||
| 543 | { |
||
| 544 | $this->Skills = $skills; |
||
| 545 | |||
| 546 | return $this; |
||
| 547 | } |
||
| 548 | /** |
||
| 549 | * Get ProfessionalBiography value |
||
| 550 | * @return string|null |
||
| 551 | */ |
||
| 552 | public function getProfessionalBiography(): ?string |
||
| 553 | { |
||
| 554 | return $this->ProfessionalBiography; |
||
| 555 | } |
||
| 556 | /** |
||
| 557 | * Set ProfessionalBiography value |
||
| 558 | * @param string $professionalBiography |
||
| 559 | * @return \StructType\EwsPersonType |
||
| 560 | */ |
||
| 561 | public function setProfessionalBiography(?string $professionalBiography = null): self |
||
| 570 | } |
||
| 571 | /** |
||
| 572 | * Get ManagementChain value |
||
| 573 | * @return \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 574 | */ |
||
| 575 | public function getManagementChain(): ?\ArrayType\EwsArrayOfProfileInsightValue |
||
| 576 | { |
||
| 577 | return $this->ManagementChain; |
||
| 578 | } |
||
| 579 | /** |
||
| 580 | * Set ManagementChain value |
||
| 581 | * @param \ArrayType\EwsArrayOfProfileInsightValue $managementChain |
||
| 582 | * @return \StructType\EwsPersonType |
||
| 583 | */ |
||
| 584 | public function setManagementChain(?\ArrayType\EwsArrayOfProfileInsightValue $managementChain = null): self |
||
| 585 | { |
||
| 586 | $this->ManagementChain = $managementChain; |
||
| 587 | |||
| 588 | return $this; |
||
| 589 | } |
||
| 590 | /** |
||
| 591 | * Get DirectReports value |
||
| 592 | * @return \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 593 | */ |
||
| 594 | public function getDirectReports(): ?\ArrayType\EwsArrayOfProfileInsightValue |
||
| 595 | { |
||
| 596 | return $this->DirectReports; |
||
| 597 | } |
||
| 598 | /** |
||
| 599 | * Set DirectReports value |
||
| 600 | * @param \ArrayType\EwsArrayOfProfileInsightValue $directReports |
||
| 601 | * @return \StructType\EwsPersonType |
||
| 602 | */ |
||
| 603 | public function setDirectReports(?\ArrayType\EwsArrayOfProfileInsightValue $directReports = null): self |
||
| 604 | { |
||
| 605 | $this->DirectReports = $directReports; |
||
| 606 | |||
| 607 | return $this; |
||
| 608 | } |
||
| 609 | /** |
||
| 610 | * Get Peers value |
||
| 611 | * @return \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 612 | */ |
||
| 613 | public function getPeers(): ?\ArrayType\EwsArrayOfProfileInsightValue |
||
| 614 | { |
||
| 615 | return $this->Peers; |
||
| 616 | } |
||
| 617 | /** |
||
| 618 | * Set Peers value |
||
| 619 | * @param \ArrayType\EwsArrayOfProfileInsightValue $peers |
||
| 620 | * @return \StructType\EwsPersonType |
||
| 621 | */ |
||
| 622 | public function setPeers(?\ArrayType\EwsArrayOfProfileInsightValue $peers = null): self |
||
| 623 | { |
||
| 624 | $this->Peers = $peers; |
||
| 625 | |||
| 626 | return $this; |
||
| 627 | } |
||
| 628 | /** |
||
| 629 | * Get TeamSize value |
||
| 630 | * @return string|null |
||
| 631 | */ |
||
| 632 | public function getTeamSize(): ?string |
||
| 633 | { |
||
| 634 | return $this->TeamSize; |
||
| 635 | } |
||
| 636 | /** |
||
| 637 | * Set TeamSize value |
||
| 638 | * @param string $teamSize |
||
| 639 | * @return \StructType\EwsPersonType |
||
| 640 | */ |
||
| 641 | public function setTeamSize(?string $teamSize = null): self |
||
| 642 | { |
||
| 643 | // validation for constraint: string |
||
| 644 | if (!is_null($teamSize) && !is_string($teamSize)) { |
||
| 645 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($teamSize, true), gettype($teamSize)), __LINE__); |
||
| 646 | } |
||
| 647 | $this->TeamSize = $teamSize; |
||
| 648 | |||
| 649 | return $this; |
||
| 650 | } |
||
| 651 | /** |
||
| 652 | * Get CurrentJob value |
||
| 653 | * @return \ArrayType\EwsArrayOfJobInsightValue|null |
||
| 654 | */ |
||
| 655 | public function getCurrentJob(): ?\ArrayType\EwsArrayOfJobInsightValue |
||
| 656 | { |
||
| 657 | return $this->CurrentJob; |
||
| 658 | } |
||
| 659 | /** |
||
| 660 | * Set CurrentJob value |
||
| 661 | * @param \ArrayType\EwsArrayOfJobInsightValue $currentJob |
||
| 662 | * @return \StructType\EwsPersonType |
||
| 663 | */ |
||
| 664 | public function setCurrentJob(?\ArrayType\EwsArrayOfJobInsightValue $currentJob = null): self |
||
| 665 | { |
||
| 666 | $this->CurrentJob = $currentJob; |
||
| 667 | |||
| 668 | return $this; |
||
| 669 | } |
||
| 670 | /** |
||
| 671 | * Get Birthday value |
||
| 672 | * @return string|null |
||
| 673 | */ |
||
| 674 | public function getBirthday(): ?string |
||
| 675 | { |
||
| 676 | return $this->Birthday; |
||
| 677 | } |
||
| 678 | /** |
||
| 679 | * Set Birthday value |
||
| 680 | * @param string $birthday |
||
| 681 | * @return \StructType\EwsPersonType |
||
| 682 | */ |
||
| 683 | public function setBirthday(?string $birthday = null): self |
||
| 684 | { |
||
| 685 | // validation for constraint: string |
||
| 686 | if (!is_null($birthday) && !is_string($birthday)) { |
||
| 687 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($birthday, true), gettype($birthday)), __LINE__); |
||
| 688 | } |
||
| 689 | $this->Birthday = $birthday; |
||
| 690 | |||
| 691 | return $this; |
||
| 692 | } |
||
| 693 | /** |
||
| 694 | * Get Hometown value |
||
| 695 | * @return string|null |
||
| 696 | */ |
||
| 697 | public function getHometown(): ?string |
||
| 698 | { |
||
| 699 | return $this->Hometown; |
||
| 700 | } |
||
| 701 | /** |
||
| 702 | * Set Hometown value |
||
| 703 | * @param string $hometown |
||
| 704 | * @return \StructType\EwsPersonType |
||
| 705 | */ |
||
| 706 | public function setHometown(?string $hometown = null): self |
||
| 707 | { |
||
| 708 | // validation for constraint: string |
||
| 709 | if (!is_null($hometown) && !is_string($hometown)) { |
||
| 710 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($hometown, true), gettype($hometown)), __LINE__); |
||
| 711 | } |
||
| 712 | $this->Hometown = $hometown; |
||
| 713 | |||
| 714 | return $this; |
||
| 715 | } |
||
| 716 | /** |
||
| 717 | * Get CurrentLocation value |
||
| 718 | * @return string|null |
||
| 719 | */ |
||
| 720 | public function getCurrentLocation(): ?string |
||
| 721 | { |
||
| 722 | return $this->CurrentLocation; |
||
| 723 | } |
||
| 724 | /** |
||
| 725 | * Set CurrentLocation value |
||
| 726 | * @param string $currentLocation |
||
| 727 | * @return \StructType\EwsPersonType |
||
| 728 | */ |
||
| 729 | public function setCurrentLocation(?string $currentLocation = null): self |
||
| 730 | { |
||
| 731 | // validation for constraint: string |
||
| 732 | if (!is_null($currentLocation) && !is_string($currentLocation)) { |
||
| 733 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($currentLocation, true), gettype($currentLocation)), __LINE__); |
||
| 734 | } |
||
| 735 | $this->CurrentLocation = $currentLocation; |
||
| 736 | |||
| 737 | return $this; |
||
| 738 | } |
||
| 739 | /** |
||
| 740 | * Get CompanyProfile value |
||
| 741 | * @return \ArrayType\EwsArrayOfCompanyInsightValue|null |
||
| 742 | */ |
||
| 743 | public function getCompanyProfile(): ?\ArrayType\EwsArrayOfCompanyInsightValue |
||
| 746 | } |
||
| 747 | /** |
||
| 748 | * Set CompanyProfile value |
||
| 749 | * @param \ArrayType\EwsArrayOfCompanyInsightValue $companyProfile |
||
| 750 | * @return \StructType\EwsPersonType |
||
| 751 | */ |
||
| 752 | public function setCompanyProfile(?\ArrayType\EwsArrayOfCompanyInsightValue $companyProfile = null): self |
||
| 753 | { |
||
| 754 | $this->CompanyProfile = $companyProfile; |
||
| 755 | |||
| 756 | return $this; |
||
| 757 | } |
||
| 758 | /** |
||
| 759 | * Get Office value |
||
| 760 | * @return string|null |
||
| 761 | */ |
||
| 762 | public function getOffice(): ?string |
||
| 763 | { |
||
| 764 | return $this->Office; |
||
| 765 | } |
||
| 766 | /** |
||
| 767 | * Set Office value |
||
| 768 | * @param string $office |
||
| 769 | * @return \StructType\EwsPersonType |
||
| 770 | */ |
||
| 771 | public function setOffice(?string $office = null): self |
||
| 772 | { |
||
| 773 | // validation for constraint: string |
||
| 774 | if (!is_null($office) && !is_string($office)) { |
||
| 775 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($office, true), gettype($office)), __LINE__); |
||
| 776 | } |
||
| 777 | $this->Office = $office; |
||
| 778 | |||
| 779 | return $this; |
||
| 780 | } |
||
| 781 | /** |
||
| 782 | * Get Headline value |
||
| 783 | * @return string|null |
||
| 784 | */ |
||
| 785 | public function getHeadline(): ?string |
||
| 786 | { |
||
| 787 | return $this->Headline; |
||
| 788 | } |
||
| 789 | /** |
||
| 790 | * Set Headline value |
||
| 791 | * @param string $headline |
||
| 792 | * @return \StructType\EwsPersonType |
||
| 793 | */ |
||
| 794 | public function setHeadline(?string $headline = null): self |
||
| 795 | { |
||
| 796 | // validation for constraint: string |
||
| 797 | if (!is_null($headline) && !is_string($headline)) { |
||
| 798 | throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($headline, true), gettype($headline)), __LINE__); |
||
| 799 | } |
||
| 800 | $this->Headline = $headline; |
||
| 801 | |||
| 802 | return $this; |
||
| 803 | } |
||
| 804 | /** |
||
| 805 | * Get MutualConnections value |
||
| 806 | * @return \ArrayType\EwsArrayOfProfileInsightValue|null |
||
| 807 | */ |
||
| 808 | public function getMutualConnections(): ?\ArrayType\EwsArrayOfProfileInsightValue |
||
| 809 | { |
||
| 810 | return $this->MutualConnections; |
||
| 811 | } |
||
| 812 | /** |
||
| 813 | * Set MutualConnections value |
||
| 814 | * @param \ArrayType\EwsArrayOfProfileInsightValue $mutualConnections |
||
| 815 | * @return \StructType\EwsPersonType |
||
| 816 | */ |
||
| 817 | public function setMutualConnections(?\ArrayType\EwsArrayOfProfileInsightValue $mutualConnections = null): self |
||
| 818 | { |
||
| 819 | $this->MutualConnections = $mutualConnections; |
||
| 820 | |||
| 821 | return $this; |
||
| 822 | } |
||
| 823 | /** |
||
| 824 | * Get Title value |
||
| 825 | * @return string|null |
||
| 826 | */ |
||
| 827 | public function getTitle(): ?string |
||
| 828 | { |
||
| 829 | return $this->Title; |
||
| 830 | } |
||
| 831 | /** |
||
| 832 | * Set Title value |
||
| 833 | * @param string $title |
||
| 834 | * @return \StructType\EwsPersonType |
||
| 835 | */ |
||
| 836 | public function setTitle(?string $title = null): self |
||
| 845 | } |
||
| 846 | /** |
||
| 847 | * Get MutualManager value |
||
| 848 | * @return \StructType\EwsProfileInsightValue|null |
||
| 849 | */ |
||
| 850 | public function getMutualManager(): ?\StructType\EwsProfileInsightValue |
||
| 851 | { |
||
| 852 | return $this->MutualManager; |
||
| 853 | } |
||
| 854 | /** |
||
| 855 | * Set MutualManager value |
||
| 856 | * @param \StructType\EwsProfileInsightValue $mutualManager |
||
| 857 | * @return \StructType\EwsPersonType |
||
| 858 | */ |
||
| 859 | public function setMutualManager(?\StructType\EwsProfileInsightValue $mutualManager = null): self |
||
| 860 | { |
||
| 861 | $this->MutualManager = $mutualManager; |
||
| 862 | |||
| 863 | return $this; |
||
| 864 | } |
||
| 865 | /** |
||
| 866 | * Get Insights value |
||
| 867 | * @return \ArrayType\EwsArrayOfInsight|null |
||
| 868 | */ |
||
| 869 | public function getInsights(): ?\ArrayType\EwsArrayOfInsight |
||
| 870 | { |
||
| 871 | return $this->Insights; |
||
| 872 | } |
||
| 873 | /** |
||
| 874 | * Set Insights value |
||
| 875 | * @param \ArrayType\EwsArrayOfInsight $insights |
||
| 876 | * @return \StructType\EwsPersonType |
||
| 877 | */ |
||
| 878 | public function setInsights(?\ArrayType\EwsArrayOfInsight $insights = null): self |
||
| 879 | { |
||
| 880 | $this->Insights = $insights; |
||
| 881 | |||
| 882 | return $this; |
||
| 883 | } |
||
| 884 | /** |
||
| 885 | * Get UserProfilePicture value |
||
| 886 | * @return \StructType\EwsUserProfilePicture|null |
||
| 887 | */ |
||
| 888 | public function getUserProfilePicture(): ?\StructType\EwsUserProfilePicture |
||
| 889 | { |
||
| 890 | return $this->UserProfilePicture; |
||
| 891 | } |
||
| 892 | /** |
||
| 893 | * Set UserProfilePicture value |
||
| 894 | * @param \StructType\EwsUserProfilePicture $userProfilePicture |
||
| 895 | * @return \StructType\EwsPersonType |
||
| 896 | */ |
||
| 897 | public function setUserProfilePicture(?\StructType\EwsUserProfilePicture $userProfilePicture = null): self |
||
| 902 | } |
||
| 903 | } |
||
| 904 |