Set measureUnit

@param \Flowcode\ShopBundle\Entity\MeasureUnit $measureUnit

@return StockTransferItem
427068
public function setMeasureUnit(\Flowcode\ShopBundle\Entity\MeasureUnit $measureUnit = null)
    {
        $this->measureUnit = $measureUnit;

        return $this;
    }
153976
public function setUnit($unit)
    {
        if ($unit instanceof RowColumn) {
            $this->unit_column = $unit->getColumnName();
        } elseif (!is_string($unit) || trim($unit) == '') {
            throw new Exception\InvalidArgumentException(__METHOD__ . ' Unit must be an non empty string (or a RowColumn object)');
        }
        $this->params['unit'] = $unit;

        return $this;
    }
201573
public void setUnit(String v) {
    if (Measure_Type.featOkTst && ((Measure_Type)jcasType).casFeat_unit == null)
      jcasType.jcas.throwFeatMissing("unit", "ch.epfl.bbp.uima.types.Measure");
    jcasType.ll_cas.ll_setStringValue(addr, ((Measure_Type)jcasType).casFeatCode_unit, v);}
489161
@Override
	@Transactional(enabled = false)
	public CPMeasurementUnit createCPMeasurementUnit(long CPMeasurementUnitId) {
		return cpMeasurementUnitPersistence.create(CPMeasurementUnitId);
	}
75050
public function select(SelectionUnit $selectionUnit)
    {
        $ownerType = $selectionUnit->getType();

        $unit_number = $selectionUnit->getNumber();
        $key = 'unit_'.$unit_number;

        if(array_key_exists($key, $this->units))
        {
            return $this->units[$key];
        }

        $collection = new MapSeoCollection($this->factory);
        $this->units[$key] = $collection;

        $query = DB::table('seos');
        $query->where('seos.entity_name', '=', $selectionUnit->getTypeName());

        if($selectionUnit->closeToIdSet())
        {
            $query->whereIn('seos.entity_id', $selectionUnit->getIdSet());
        }

        $result = Helpers::laravel_db_result_to_array($query->get(['entity_name', 'entity_id', 'name', 'value']));

        $this->addResultToCollection($ownerType, $collection, $result);


        return $collection;
    }
1134287
public function setTransUnit(\Lexik\Bundle\TranslationBundle\Model\TransUnit $transUnit)
    {
        $this->transUnit = $transUnit;
    }
1173327
public function getQtyByLocation(StockItemInterface $item,
        Location $location): UomQty
    {
        $units = $this->stockUnitRepository
            ->findByStockItemAndLocation($item, $location);

        return $this->computeQtyForUnits($item->getUom(), $units);
    }
1353041
public function createDraft(StockItemInterface $stockItem, UomQty $qty): Movement
    {
        $code = $this->codeGenerator->generate($stockItem, $qty);

        return Movement::createDefault($code, $stockItem, $qty);
    }
1317356
func (s *GetLoadBalancerMetricDataInput) SetUnit(v string) *GetLoadBalancerMetricDataInput {
	s.Unit = &v
	return s
}
69185
public function deleteAction(MeasureUnit $measureunit, Request $request)
    {
        $form = $this->createDeleteForm($measureunit->getId(), 'admin_shop_measure_unit_delete');
        if ($form->handleRequest($request)->isValid()) {
            $em = $this->getDoctrine()->getManager();
            $em->remove($measureunit);
            $em->flush();
        }

        return $this->redirect($this->generateUrl('admin_shop_measure_unit'));
    }
872850
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CPMeasurementUnit addCPMeasurementUnit(
		CPMeasurementUnit cpMeasurementUnit) {
		cpMeasurementUnit.setNew(true);

		return cpMeasurementUnitPersistence.update(cpMeasurementUnit);
	}
329335
public function setSurvey(\Lyon1\Bundle\PoobleBundle\Entity\Survey $survey = null)
    {
        $this->survey = $survey;

        return $this;
    }
1297465
public function setMeasureType(\Core\Entity\MeasureType $measureType = null)
    {
        $this->measureType = $measureType;

        return $this;
    }
1290186
@Override
	public com.liferay.commerce.product.model.CPMeasurementUnit addCPMeasurementUnit(
		com.liferay.commerce.product.model.CPMeasurementUnit cpMeasurementUnit) {
		return _cpMeasurementUnitLocalService.addCPMeasurementUnit(cpMeasurementUnit);
	}
1118033
public function createNew(StockItemInterface $item, UomQty $qty, Location $location,
        ?BatchInterface $batch = null): StockUnit
    {
        $code = $this->codeGenerator->generate($item, $qty, $location, $batch);

        return StockUnit::createDefault($code, $item, $qty, $location, $batch);
    }
829244
public function setStockTransfer(\Flowcode\ShopBundle\Entity\StockTransfer $stockTransfer = null)
    {
        $this->stockTransfer = $stockTransfer;

        return $this;
    }
448144
public void setAcquireRetryDelay(long acquireRetryDelay, TimeUnit timeUnit) {
		this.acquireRetryDelayInMs = TimeUnit.MILLISECONDS.convert(acquireRetryDelay, timeUnit);
	}