EnvInterface.php 443 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of Psy Shell.
  4. *
  5. * (c) 2012-2023 Justin Hileman
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Psy;
  11. /**
  12. * Abstraction around environment variables.
  13. */
  14. interface EnvInterface
  15. {
  16. /**
  17. * Get an environment variable by name.
  18. *
  19. * @return string|null
  20. */
  21. public function get(string $key);
  22. }