protected function getFiles(): array
    {
        $path = $this->getPath();

        $files = $this->file->allFiles($path);

        if (! $files) {
            throw new MenuFilesNotFound("Menu files have not been found in [{$path}].");
        }

        return $files;
    }
protected function getFiles(): array
    {
        $path = $this->getPath();

        $files = $this->file->allFiles($path);

        if (! $files) {
            throw new MenuFilesNotFound("Menu files have not been found in [{$path}].");
        }

        return $files;
    }
protected function getFiles ( ) : array { $ path = $ this -> getPath ( ) ; $ files = $ this -> file -> allFiles ( $ path ) ; if ( ! $ files ) { throw new MenuFilesNotFound ( "Menu files have not been found in [{$path}]." ) ; } return $ files ; }
Get menu files from the specified directory.
Get menu files from the specified directory .