Viewing file: SetEnvWriter.php (1.37 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types=1);
namespace dacoto\SetEnv\Contracts;
interface SetEnvWriter { /** * Load current content into buffer * * @param string $content */ public function setBuffer(string $content);
/** * Append empty line to buffer */ public function appendEmptyLine();
/** * Append comment line to buffer * * @param string $comment */ public function appendCommentLine(string $comment);
/** * Append one setter to buffer * * @param string $key * @param string|null $value * @param string|null $comment * @param boolean $export */ public function appendSetter(string $key, string $value = null, string $comment = null, bool $export = false);
/** * Update one setter in buffer * * @param string $key * @param string|null $value * @param string|null $comment * @param boolean $export */ public function updateSetter(string $key, string $value = null, string $comment = null, bool $export = false);
/** * Delete one setter in buffer * * @param string $key * * @return object */ public function deleteSetter(string $key): object;
/** * Save buffer to special file path * * @param string $filePath */ public function save(string $filePath); }
|