public function missingIngredient(): callable
    {
        return function (IngredientInterface $ingredient, string $message): ChefInterface {
            /**
             * @var Chef $this
             */
            $this->missingIngredients[$message] = $ingredient;

            return $this;
        };
    }
public function missingIngredient(): callable
    {
        return function (IngredientInterface $ingredient, string $message): ChefInterface {
            /**
             * @var Chef $this
             */
            $this->missingIngredients[$message] = $ingredient;

            return $this;
        };
    }
public function missingIngredient ( ) : callable { return function ( IngredientInterface $ ingredient , string $ message ) : ChefInterface { /**
             * @var Chef $this
             */ $ this -> missingIngredients [ $ message ] = $ ingredient ; return $ this ; } ; }
To memorize a missing ingredients to stop the cooking of the recipe.
To memorize a missing ingredients to stop the cooking of the recipe .