blob: 88129d01e21fb88b8e5a79d2109a6a329cf42ff5 [file] [log] [blame]
<?php
namespace Adldap\Models;
/**
* Class Organization.
*
* Represents an LDAP organization.
*/
class Organization extends Entry
{
use Concerns\HasDescription;
/**
* Retrieves the organization units OU attribute.
*
* @return string
*/
public function getOrganization()
{
return $this->getFirstAttribute($this->schema->organizationName());
}
/**
* {@inheritdoc}
*/
protected function getCreatableDn()
{
return $this->getDnBuilder()->addO($this->getOrganization());
}
}