src/TypeLoader.php
public function load(string $key): TypeInterface
    {
        if (!$this->has($key)) {
            throw new NotFoundException('the device type with key "' . $key . '" was not found');
        }

        $class = self::OPTIONS[$key];

        return new $class();
    }
public function load(string $key): TypeInterface
    {
        if (!$this->has($key)) {
            throw new NotFoundException('the device type with key "' . $key . '" was not found');
        }

        $class = self::OPTIONS[$key];

        return new $class();
    }
@param string $key

@throws \BrowserDetector\Loader\NotFoundException

@return \UaDeviceType\TypeInterface