| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace Dotenv\Environment;
- use ArrayAccess;
- /**
- * This environment variables interface.
- */
- interface VariablesInterface extends ArrayAccess
- {
- /**
- * Determine if the environment is immutable.
- *
- * @return bool
- */
- public function isImmutable();
- /**
- * Tells whether environment variable has been defined.
- *
- * @param string $name
- *
- * @return bool
- */
- public function has($name);
- /**
- * Get an environment variable.
- *
- * @param string $name
- *
- * @throws \InvalidArgumentException
- *
- * @return string|null
- */
- public function get($name);
- /**
- * Set an environment variable.
- *
- * @param string $name
- * @param string|null $value
- *
- * @throws \InvalidArgumentException
- *
- * @return void
- */
- public function set($name, $value = null);
- /**
- * Clear an environment variable.
- *
- * @param string $name
- *
- * @throws \InvalidArgumentException
- *
- * @return void
- */
- public function clear($name);
- }
|