public function uomsForProduct(ProductModel $product) { if ($product->getProductTypeId() == 1) { return $this->buildersToUomsArray($product->getBuilders()); } return $this->mergeEnabledUoms($product->getUoms()); }