The expression return $this->userPrincipalName could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
33
}
34
35
/**
36
* @return ActiveDirectoryUser
37
*/
38
public function setUserPrincipalName(string $userPrincipalName) {
The expression return $this->objectGuid could return the type null which is incompatible with the type-hinted return Ramsey\Uuid\UuidInterface. Consider adding an additional type-check to rule them out.
Loading history...
45
}
46
47
public function setObjectGuid(UuidInterface $objectGuid): ActiveDirectoryUser {
The expression return $this->ou could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
54
}
55
56
public function setOu(string $ou): ActiveDirectoryUser {
57
$this->ou = $ou;
58
return $this;
59
}
60
61
/**
62
* @return string[]
63
*/
64
public function getGroups(): array {
65
return $this->groups;
66
}
67
68
/**
69
* @param string[] $groups
70
*/
71
public function setGroups(array $groups): ActiveDirectoryUser {