src/LdapTools/Ldif/LdifStringBuilderTrait.php
protected function addCommentsToString($ldif)
    {
        foreach ($this->comments as $comment) {
            $ldif .= Ldif::COMMENT.' '.$this->getValueForLine($comment).$this->lineEnding;
        }

        return $ldif;
    }
protected function addCommentsToString($ldif)
    {
        foreach ($this->comments as $comment) {
            $ldif .= Ldif::COMMENT.' '.$this->getValueForLine($comment).$this->lineEnding;
        }

        return $ldif;
    }
protected function addCommentsToString ( $ ldif ) { foreach ( $ this -> comments as $ comment ) { $ ldif .= Ldif :: COMMENT . ' ' . $ this -> getValueForLine ( $ comment ) . $ this -> lineEnding ; } return $ ldif ; }
Add any specified comments to the generated LDIF.

@param string $ldif
@return string
Add any specified comments to the generated LDIF .