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