original_string: public function build($name, Collection $fields = null)
      {
          $path = $this->getClassFilePath($name);
  
          $contents = view('_hierarchy::entities.form', [
              'name'   => $this->getClassName($name),
              'fields' => $fields ?: []
          ])->render();
  
          $this->write($path, $contents);
      }
code: public function build($name, Collection $fields = null)
      {
          $path = $this->getClassFilePath($name);
  
          $contents = view('_hierarchy::entities.form', [
              'name'   => $this->getClassName($name),
              'fields' => $fields ?: []
          ])->render();
  
          $this->write($path, $contents);
      }
code_tokens: public function build ( $ name , Collection $ fields = null ) { $ path = $ this -> getClassFilePath ( $ name ) ; $ contents = view ( '_hierarchy::entities.form' , [ 'name' => $ this -> getClassName ( $ name ) , 'fields' => $ fields ? : [ ] ] ) -> render ( ) ; $ this -> write ( $ path , $ contents ) ; }
docstring: Builds a source form
  
  @param string $name
  @param Collection|null $fields
docstring_tokens: Builds a source form