blob: 0571e4d407f17289176966d6bb5ff9bd97ba4aaa [file] [log] [blame]
<?php
namespace Adldap\Models;
/**
* Class OrganizationalUnit.
*
* Represents an LDAP organizational unit.
*/
class OrganizationalUnit extends Entry
{
use Concerns\HasDescription;
/**
* Retrieves the organization units OU attribute.
*
* @return string
*/
public function getOu()
{
return $this->getFirstAttribute($this->schema->organizationalUnitShort());
}
/**
* {@inheritdoc}
*/
protected function getCreatableDn()
{
return $this->getDnBuilder()->addOU($this->getOu());
}
}