firstname ?? "", $this->lastname ?? "" ])) ?: ( $this->displayName ?? "" ); } public function memberOfGroup() : array { $arr = array_map(fn($e) => explode('=', explode(',', $e)[0])[1], $this->memberOf); usort($arr, 'strcasecmp'); return $arr; } public function brokenMigration() : bool { if ( empty($this->targetAddress) ) { foreach($this->proxyAddresses ?? [] as $proxy) { if ( str_contains(strtolower($proxy), 'x500') ) { return true; } } } return false; } public function migrated() : bool { return ! empty($this->targetAddress); } public function unmigrated() : bool { return empty($this->targetAddress) && empty($this->proxyAddresses); } }