src/Entity/Recipe.php
public function setCraftingTime(float $craftingTime): self
    {
        $this->craftingTime = (int) ($craftingTime * self::FACTOR_CRAFTING_TIME);
        return $this;
    }
public function setCraftingTime(float $craftingTime): self
    {
        $this->craftingTime = (int) ($craftingTime * self::FACTOR_CRAFTING_TIME);
        return $this;
    }
public function setCraftingTime ( float $ craftingTime ) : self { $ this -> craftingTime = ( int ) ( $ craftingTime * self :: FACTOR_CRAFTING_TIME ) ; return $ this ; }
Sets the required time in seconds to craft the recipe.
@param float $craftingTime
@return $this Implementing fluent interface.
Sets the required time in seconds to craft the recipe .