service/ProductService.php
public static function get(Context $context, $number)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::PRODUCT_ENDPOINT_PATH . '/' . $number);

        $product = null;

        if (!empty($response->items->item[0])) {
            $product = ItemToProductConverter::convert($response->items->item[0]);
            $product->exists = true;
        }

        return $product;
    }
public static function get(Context $context, $number)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::PRODUCT_ENDPOINT_PATH . '/' . $number);

        $product = null;

        if (!empty($response->items->item[0])) {
            $product = ItemToProductConverter::convert($response->items->item[0]);
            $product->exists = true;
        }

        return $product;
    }
Gets product by its number.See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/Product+Services#ProductServices-Getproduct

determines the vendor on whose behalf the call is performed
@param \NetLicensing\Context $context

the product number
@param string $number

return the product object
@return Product|null
@throws MalformedArgumentsException
@throws RestException
@throws \ErrorException