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

        $company = $this->companies[$key];

        return new Company(
            $key,
            $company['name'],
            $company['brandname']
        );
    }
public function load(string $key): CompanyInterface
    {
        if (!$this->has($key)) {
            throw new NotFoundException('the company with key "' . $key . '" was not found');
        }

        $company = $this->companies[$key];

        return new Company(
            $key,
            $company['name'],
            $company['brandname']
        );
    }
public function load ( string $ key ) : CompanyInterface { if ( ! $ this -> has ( $ key ) ) { throw new NotFoundException ( 'the company with key "' . $ key . '" was not found' ) ; } $ company = $ this -> companies [ $ key ] ; return new Company ( $ key , $ company [ 'name' ] , $ company [ 'brandname' ] ) ; }
Gets the information about the company

@param string $key

@throws \BrowserDetector\Loader\NotFoundException

@return \UaResult\Company\CompanyInterface
Gets the information about the company