You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
518 B
28 lines
518 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Dotenv\Repository\Adapter;
|
|
|
|
interface WriterInterface
|
|
{
|
|
/**
|
|
* Write to an environment variable, if possible.
|
|
*
|
|
* @param non-empty-string $name
|
|
* @param string $value
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function write(string $name, string $value);
|
|
|
|
/**
|
|
* Delete an environment variable, if possible.
|
|
*
|
|
* @param non-empty-string $name
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function delete(string $name);
|
|
}
|