private function checkMissingIngredients(): callable
    {
        return function (): void {
            /**
             * @var Chef $this
             */
            if (empty($this->missingIngredients)) {
                return;
            }

            throw new \RuntimeException(
                'Error, missing some ingredients : '
                . implode(', ', \array_keys($this->missingIngredients))
            );
        };
    }
private function checkMissingIngredients(): callable
    {
        return function (): void {
            /**
             * @var Chef $this
             */
            if (empty($this->missingIngredients)) {
                return;
            }

            throw new \RuntimeException(
                'Error, missing some ingredients : '
                . implode(', ', \array_keys($this->missingIngredients))
            );
        };
    }
private function checkMissingIngredients ( ) : callable { return function ( ) : void { /**
             * @var Chef $this
             */ if ( empty ( $ this -> missingIngredients ) ) { return ; } throw new \ RuntimeException ( 'Error, missing some ingredients : ' . implode ( ', ' , \ array_keys ( $ this -> missingIngredients ) ) ) ; } ; }
To check if the chef has memorized some missing ingredients
To check if the chef has memorized some missing ingredients