original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get menu files from the specified directory.
docstring_tokens: Get menu files from the specified directory .