final protected function getEnv() : array
    {
        $envMask = $this->contexts['env'];
        $env = empty($envMask)
            ? $_SERVER
            : array_intersect_key($_SERVER, array_flip($envMask));

        return $env;
    }
final protected function getEnv() : array
    {
        $envMask = $this->contexts['env'];
        $env = empty($envMask)
            ? $_SERVER
            : array_intersect_key($_SERVER, array_flip($envMask));

        return $env;
    }
final protected function getEnv ( ) : array { $ envMask = $ this -> contexts [ 'env' ] ; $ env = empty ( $ envMask ) ? $ _SERVER : array_intersect_key ( $ _SERVER , array_flip ( $ envMask ) ) ; return $ env ; }
Get the Environment Variables

@link http://php.net/manual/en/reserved.variables.server.php
@link https://github.com/philkra/elastic-apm-php-agent/issues/27
@link https://github.com/philkra/elastic-apm-php-agent/issues/54

@return array
Get the Environment Variables