src/Entity/RecipeIngredient.php
public function setAmount(float $amount): self
    {
        $this->amount = (int) ($amount * self::FACTOR_AMOUNT);
        return $this;
    }
public function setAmount(float $amount): self
    {
        $this->amount = (int) ($amount * self::FACTOR_AMOUNT);
        return $this;
    }
public function setAmount ( float $ amount ) : self { $ this -> amount = ( int ) ( $ amount * self :: FACTOR_AMOUNT ) ; return $ this ; }
Sets the amount required for the recipe.
@param float $amount
@return $this Implementing fluent interface.
Sets the amount required for the recipe .