name; } /** * Gets the attribute OID * * @return string */ public function getOid() { return $this->oid; } /** * Gets the attribute syntax * * @return string */ public function getSyntax() { if ($this->syntax === null) { $parent = $this->getParent(); if ($parent === null) return null; else return $parent->getSyntax(); } else { return $this->syntax; } } /** * Gets the attribute maximum length * * @return int|null */ public function getMaxLength() { $maxLength = $this->{'max-length'}; if ($maxLength === null) { $parent = $this->getParent(); if ($parent === null) return null; else return $parent->getMaxLength(); } else { return (int)$maxLength; } } /** * Returns if the attribute is single-valued. * * @return boolean */ public function isSingleValued() { return $this->{'single-value'}; } /** * Gets the attribute description * * @return string */ public function getDescription() { return $this->desc; } /** * Returns the parent attribute type in the inhertitance tree if one exists * * @return Zend_Ldap_Node_Schema_AttributeType_OpenLdap|null */ public function getParent() { if (count($this->_parents) === 1) { return $this->_parents[0]; } } }