<?php/* * This file is part of Psy Shell. * * (c) 2012-2022 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespacePsy;/** * Environment variables implementation via $_SERVER superglobal. */classSuperglobalsEnvimplementsEnvInterface{/** * Get an environment variable by name. * * @return string|null */publicfunctionget(string$key){if(isset($_SERVER[$key])&&$_SERVER[$key]){return$_SERVER[$key];}returnnull;}}