Box\Spout\Reader\AbstractReader::getStreamWrapperScheme PHP Метод

getStreamWrapperScheme() защищенный Метод

For example, php://temp => php, s3://path/to/file => s3...
protected getStreamWrapperScheme ( string $filePath ) : string | null
$filePath string Path of the file to be read
Результат string | null The stream wrapper scheme or NULL if not a stream wrapper
    protected function getStreamWrapperScheme($filePath)
    {
        $streamScheme = null;
        if (preg_match('/^(\\w+):\\/\\//', $filePath, $matches)) {
            $streamScheme = $matches[1];
        }
        return $streamScheme;
    }