LdapTools\Ldif\Entry\LdifEntryAdd::toString PHP Method

toString() public method

public toString ( )
    public function toString()
    {
        /** @var AddOperation $operation */
        $operation = $this->toOperation();
        $ldif = $this->getCommonString($operation->getDn());
        $this->unicodePwdHack($operation);
        foreach ($operation->getAttributes() as $key => $values) {
            $values = is_array($values) ? $values : [$values];
            foreach ($values as $value) {
                $ldif .= $this->getLdifLine($key, $value);
            }
        }
        return $ldif;
    }