public function readRecipe(): callable
    {
        return function (RecipeInterface $recipe): ChefInterface {
            /**
             * @var Chef $this
             */
            $this->recipe = $recipe->train($this);

            $this->updateStates();

            return $this;
        };
    }
public function readRecipe(): callable
    {
        return function (RecipeInterface $recipe): ChefInterface {
            /**
             * @var Chef $this
             */
            $this->recipe = $recipe->train($this);

            $this->updateStates();

            return $this;
        };
    }
public function readRecipe ( ) : callable { return function ( RecipeInterface $ recipe ) : ChefInterface { /**
             * @var Chef $this
             */ $ this -> recipe = $ recipe -> train ( $ this ) ; $ this -> updateStates ( ) ; return $ this ; } ; }
To read and lean a recipe.
To read and lean a recipe .