- Some more bugfixes and added the OrganizationalUnit entity

This commit is contained in:
mcndave committed 2021-03-09 15:26:15 +00:00
1 parent 8d1a310921
commit fa806e8e0d
11 files changed
+173 -158

No files matched your search

+4 -1
View File
@@ -4,6 +4,9 @@ namespace Ulmus\Ldap\Entity;
use Ulmus\Ldap\Entity\Field\{ Datetime };
/**
* @ObjectClass('user')
*/
class User
{
use \Ulmus\Ldap\EntityTrait;
@@ -125,6 +128,6 @@ class User
public function __toString() : string
{
return $this->displayName;
return implode(' ', array_filter([ $this->firstname ?? "", $this->lastname ?? "" ])) ?: $this->displayName;
}
}