src/Entity/RecipeProduct.php
public function setAmountMax(float $amountMax): self
    {
        $this->amountMax = (int) ($amountMax * self::FACTOR_AMOUNT_MAX);
        return $this;
    }
public function setAmountMax(float $amountMax): self
    {
        $this->amountMax = (int) ($amountMax * self::FACTOR_AMOUNT_MAX);
        return $this;
    }
public function setAmountMax ( float $ amountMax ) : self { $ this -> amountMax = ( int ) ( $ amountMax * self :: FACTOR_AMOUNT_MAX ) ; return $ this ; }
Sets the maximal amount of the product in the recipe.
@param float $amountMax
@return $this Implementing fluent interface.
Sets the maximal amount of the product in the recipe .