original_string: public function addDir(string $pathname): self
      {
          $this->dirs[] = $pathname;
          $this->optimizedDirs = null;
          return $this;
      }
code: public function addDir(string $pathname): self
      {
          $this->dirs[] = $pathname;
          $this->optimizedDirs = null;
          return $this;
      }
code_tokens: public function addDir ( string $ pathname ) : self { $ this -> dirs [ ] = $ pathname ; $ this -> optimizedDirs = null ; return $ this ; }
docstring: Registers a directory that will be publicly accessible.
  
  @param string $pathname The directory name.
  @return self Returns a reference to itself.
  @see BearFramework\App
  @see BearFramework\App\DataRepository::validate
  @see BearFramework\App\DataRepository::set()
  @example Routes.php description
docstring_tokens: Registers a directory that will be publicly accessible .