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