keys(); if (!in_array("dn", $names)) { array_unshift($names, "dn"); } $values = []; foreach ($names as $name) { $value = $object->all($name); if (count($value) == 1) $value = $value[0]; $values[$name] = $value; } $writer = $this->writer; $writer->fwrite(yaml::with($values)); $writer->fwrite("\n"); } return $this; } }