public function validateDish(): callable
    {
        return function ($value): RecipeInterface {
            /**
             * @var Recipe $this
             */
            if ($this->exceptedDish instanceof DishInterface) {
                $this->exceptedDish->isExcepted($value);
            }

            return $this;
        };
    }
public function validateDish(): callable
    {
        return function ($value): RecipeInterface {
            /**
             * @var Recipe $this
             */
            if ($this->exceptedDish instanceof DishInterface) {
                $this->exceptedDish->isExcepted($value);
            }

            return $this;
        };
    }
public function validateDish ( ) : callable { return function ( $ value ) : RecipeInterface { /**
             * @var Recipe $this
             */ if ( $ this -> exceptedDish instanceof DishInterface ) { $ this -> exceptedDish -> isExcepted ( $ value ) ; } return $ this ; } ; }
To validate the result of the cooking.
To validate the result of the cooking .